﻿

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card styling */
.card {
    background-color: #f7fcff; /* Very light, almost white background for cards */
    border-radius: 5px; /* More rounded card corners */
    padding: 20px 30px; /* Increased padding inside cards */
    margin-bottom: 10px; /* More space between cards */
    border: 1px solid #e1f0f7; /* Soft border */
    position: relative; /* For potential pseudo-elements or inner shadows */
    overflow: hidden; /* Ensures content stays within rounded corners */
    text-align: left;
    min-height: auto;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px; /* Subtle colored line at the top */
        background: linear-gradient(90deg, #60a5fa, #3b82f6);
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }



/* Input field styling */
input[type="number"],
input[type="text"],
select,
input[type="date"] {
    border: 1px solid #b8dbe2; /* Softer, blue-tinted border */
    border-radius: 0.85rem; /* Highly rounded input fields */
    padding: 14px 18px; /* Generous padding */
    font-size: 1.05rem; /* Slightly larger text */
    width: 100%;
    transition: all 0.3s ease-in-out;
    outline: none;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle inner shadow */
}

    input[type="number"]:focus,
    input[type="text"]:focus,
    select:focus,
    input[type="date"]:focus {
        border-color: #3b82f6; /* Vibrant blue on focus */
        box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.35), inset 0 1px 3px rgba(0, 0, 0, 0.08); /* Stronger focus shadow */
        background-color: #f9fdff; /* Slightly lighter background on focus */
    }

label {
    /* font-weight: 600; */ /* Bolder labels */
    color: #2d3a4b; /* Darker, more distinct label text */
    margin-bottom: 0px; /* More space below labels */
    display: block;
    font-size: 1.05rem;
}

/* Button styling - Primary */
.btn-primary {
    background: linear-gradient(45deg, #4c8bf5, #2563eb); /* Deeper, more vibrant blue gradient */
    color: white;
    padding: 10px 15px; /* Larger, more prominent buttons */
    border-radius: 0.5rem; /* Highly rounded buttons */
    font-weight: 700; /* Bolder text */
    letter-spacing: 0.02em; /* Slightly more spaced letters */
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    /* box-shadow: 0 8px 25px rgba(76, 139, 245, 0.5); */ /* Stronger button shadow */
    position: relative;
    overflow: hidden;
    font-size: 1.15rem; /* Larger text for impact */
    text-transform: uppercase; /* Uppercase text */
}

    .btn-primary:hover {
        background: linear-gradient(45deg, #2563eb, #1d4ed8); /* Darker gradient on hover */
        /*transform: translateY(-5px) scale(1.02);*/ /* More pronounced lift and slight scale */
        /*box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);*/
    }

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 350%; /* Larger ripple effect */
        height: 350%;
        background-color: rgba(255, 255, 255, 0.25); /* Stronger ripple */
        border-radius: 50%;
        transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1); /* Faster, smoother ripple */
        z-index: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    .btn-primary:hover::before {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

    .btn-primary span {
        position: relative;
        z-index: 1;
    }

/* Button styling - Add */
.btn-add {
    background-color: #34d399; /* Emerald green */
    color: white;
    padding: 12px 25px;
    border-radius: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.4);
}

    .btn-add:hover {
        background-color: #10b981; /* Darker emerald */
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 211, 153, 0.5);
    }

/* Button styling - Remove */
.btn-remove {
    background-color: #ef4444; /* Red-500 */
    color: white;
    padding: 10px 20px;
    border-radius: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
    margin-bottom: 20px;
}

    .btn-remove:hover {
        background-color: #dc2626; /* Red-600 */
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    }

/* Button styling - Secondary */
.btn-secondary {
    background-color: #6b7280; /* Gray-500 */
    color: white;
    padding: 10px 15px;
    border-radius: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    /* box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4); */
    position: relative;
    overflow: hidden;
    font-size: 1.15rem;
    text-transform: uppercase;
}

    .btn-secondary:hover {
        background-color: #4b5563; /* Gray-700 */
        /* transform: translateY(-5px) scale(1.02); */
        /*box-shadow: 0 12px 35px rgba(107, 114, 128, 0.5);*/
    }

    .btn-secondary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 350%;
        height: 350%;
        background-color: rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    .btn-secondary:hover::before {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

    .btn-secondary span {
        position: relative;
        z-index: 1;
    }

/* Result box styling */
.result-box {
    background-color: #eaf6fc; /* Very light blue background for results */
    padding: 35px; /* More padding */
    border-radius: 1.5rem; /* More rounded corners */
    border: 1px solid #c9e6f0;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.1); /* Deeper inner shadow */
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0; /* More padding */
    border-bottom: 1px dashed #aed9e9; /* Clearer dash line */
    font-size: 1.15rem; /* Larger text */
    color: #3b4c60; /* Darker text */
}

    .result-item:last-child {
        border-bottom: none;
    }

    .result-item strong {
        color: #2a384a; /* Even darker text for labels */
        font-weight: 700; /* Bolder */
    }

    .result-item span {
        color: #4f637b; /* Slightly softer color for values */
        font-weight: 600; /* Bolder values */
    }
/* Marginal relief item styling */
#marginalReliefItem {
    background-color: #fffbe6; /* Light yellow background */
    border-radius: 0.85rem;
    padding: 15px 25px;
    margin-top: 20px;
    border: 1px solid #ffe082;
    font-weight: 600;
    color: #b37300; /* Darker yellow-orange text */
    box-shadow: 0 4px 12px rgba(255,224,130,0.4);
    font-size: 1.1rem;
}

    #marginalReliefItem strong, #marginalReliefItem span {
        color: inherit;
    }

.total-tax-result {
    font-size: 2.5rem; /* Much larger total tax font */
    font-weight: 800; /* Extra bold */
    color: #e67e22; /* Vibrant orange for total tax */
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 4px solid #e67e22; /* Thicker border */
    animation: bounceIn 0.8s ease-out; /* Add animation to result */
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    80% {
        transform: scale(0.97);
    }

    100% {
        transform: scale(1);
    }
}

/* Radio and checkbox group styling */
.radio-group label, .checkbox-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 25px; /* More space */
    cursor: pointer;
    font-size: 1.05rem;
    color: #3c4a5c;
    transition: color 0.2s ease;
}

    .radio-group label:hover, .checkbox-group label:hover {
        color: #2a384a;
    }

.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    margin-right: 12px; /* More space */
    width: auto;
    transform: scale(1.2); /* Slightly larger */
    accent-color: #4c8bf5; /* Accent color for inputs */
    transition: transform 0.2s ease;
}

    .radio-group input[type="radio"]:hover, .checkbox-group input[type="checkbox"]:hover {
        transform: scale(1.3);
    }

/* Responsive grid */
.grid-cols-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px; /* More gap */
    align-items: center;
}

@media (max-width: 768px) {
    .grid-cols-1-2 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 25px;
    }

    .card {
        padding: 20px;
    }

    .result-box {
        padding: 20px;
    }
}

.asset-heading {
    background-color: #e0f6fc; /* Lighter blue */
    padding: 7px 10px;
    border-radius: 0rem;
    color: #0b4f8c; /* Deeper blue text */
    font-size: 1.3rem; /* Larger */
    font-weight: 700;
    margin: 0 0 20px 0;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

.date-note {
    font-size: 0.95rem; /* Slightly larger note */
    color: #8c9aaf; /* Softer gray */
    margin-top: 8px;
}

.alert-info {
    background-color: #f0faff; /* Very light blue */
    color: #1a5c8a; /* Darker blue text */
    border: 1px solid #bfe9f7;
    padding: 10px; /* More padding */
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* WhatsApp Contact Box */
.whatsapp-box {
    background: linear-gradient(45deg, #a7f3d0, #6ee7b7); /* Gradient green */
    color: #047857; /* Darker green text */
    padding: 25px 35px;
    border-radius: 1.25rem;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); /* Stronger green shadow */
    text-align: center;
    margin-top: 40px;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #5eead4;
    transition: all 0.3s ease;
}

    .whatsapp-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
        background: linear-gradient(45deg, #6ee7b7, #34d399);
    }

    .whatsapp-box a {
        display: flex;
        align-items: center;
        margin-top: 20px;
        font-weight: 700; /* Bolder text */
        color: #047857;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .whatsapp-box a:hover {
            color: #064e3b;
        }

    .whatsapp-box svg {
        width: 32px; /* Larger icon */
        height: 32px;
        margin-right: 12px;
        fill: #047857; /* WhatsApp green color */
        transition: fill 0.2s ease, transform 0.2s ease;
    }

    .whatsapp-box a:hover svg {
        fill: #064e3b;
        transform: scale(1.1);
    }

/* Footer Copyright */
.app-footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.95rem;
    color: #7f8a9a; /* Softer gray */
    padding-top: 25px;
    border-top: 1px solid #eef2f5;
    font-weight: 500;
}

    .app-footer span {
        display: block; /* Make email and number appear on new lines */
        margin-top: 5px;
    }

/* Styles for PDF Header/Footer (for output only) */
.pdf-content-header, .pdf-content-footer {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    padding: 12px;
    color: #2e6bc2;
}

.pdf-content-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0eaf5;
}

.pdf-content-footer {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #4a5568;
    border-top: 1px solid #e0eaf5;
    padding-top: 15px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9); /* More opaque */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem; /* Larger text */
    font-weight: 700;
    color: #3b82f6; /* Blue accent */
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 15px;
}

    .loading-overlay::before {
        content: '';
        border: 5px solid #f3f3f3;
        border-top: 5px solid #3b82f6;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom Message Box */
.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    display: none;
}

.message-box-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 1.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35); /* Deeper shadow */
    width: 95%;
    max-width: 500px; /* Wider */
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e5e9ee;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.message-box-content button {
    margin-top: 30px;
    padding: 14px 30px;
    border-radius: 0.8rem;
    background-color: #4c8bf5;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 5px 15px rgba(76, 139, 245, 0.3);
}

    .message-box-content button:hover {
        background-color: #3a7adf;
        box-shadow: 0 8px 20px rgba(76, 139, 245, 0.4);
        transform: translateY(-2px);
    }

/* PDF mode specific styles */
.pdf-mode-hidden {
    display: none !important;
}

.pdf-mode-input-display {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    width: auto !important;
    display: inline-block !important;
    font-weight: bold !important;
    color: #2b3542 !important;
    font-size: 1.1em !important; /* Larger for PDF */
}

.pdf-mode-label-display {
    display: inline !important;
    margin-right: 10px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    font-size: 1em !important;
}

.pdf-mode .card {
    background-color: #fcfdfe !important;
    border: 1px solid #e9eef5 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.pdf-mode .result-box {
    background-color: #eaf6fc !important;
    border: 1px solid #c9e6f0 !important;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.1) !important;
}

.pdf-mode #marginalReliefItem {
    background-color: #fffbe6 !important;
}


.alert-info p {
    margin-bottom: 0px;
}

#mainCalculatorContent h2 {
    font-size: 20px;
    margin-top: 0px;
}


#assetsContainer .card {
    background-color: #f7fcff; /* Very light, almost white background for cards */
    border-radius: 5px; /* More rounded card corners */
    padding: 20px 20px; /* Increased padding inside cards */
    margin-bottom: 10px; /* More space between cards */
    border: 1px solid #e1f0f7; /* Soft border */
    position: relative; /* For potential pseudo-elements or inner shadows */
    overflow: hidden; /* Ensures content stays within rounded corners */
    text-align: left;
    min-height: auto;
    margin-top: 10px;
}

#assetsContainer .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0px; /* Subtle colored line at the top */
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    /* margin-top: 14px; */
}
