:root {
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --bg-body: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

body.dark-mode {
    --bg-body: #020617;
    --card-bg: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.9);
}

.navbar {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand,
.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

body.dark-mode .navbar-toggler-icon {
    filter: invert(1);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: -50px;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.custom-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 40px;
    transition: transform 0.3s ease;
}

.input-group-custom {
    margin-bottom: 1.5rem;
}

.input-group-custom label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-calculate {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 700;
    color: white;
    width: 100%;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
    color: white;
}

.result-container {
    display: none;
    margin-top: 40px;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: var(--glass);
    border-radius: 24px;
    padding: 30px;
    border: 2px solid var(--primary);
}

.total-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.breakdown-table {
    width: 100%;
    margin-top: 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section {
    padding: 80px 0;
    line-height: 1.8;
}

.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.theme-toggle {
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    transition: all 0.3s;
}

body.dark-mode .theme-toggle {
    background: #1e293b;
}

.slab-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--card-bg);
        margin-top: 15px;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        border-radius: 0 0 30px 30px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .custom-card {
        padding: 25px 20px;
    }

    .total-amount {
        font-size: 2.5rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
        max-width: 80%;
        white-space: normal;
    }
}