/* Global variables and color tokens */
:root {
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #ecfdf5;
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    
    --danger: #ef4444;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
.app-header {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand img {
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.1));
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.15;
    background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.1rem;
}

.brand-text span {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-links a {
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 0.95rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.nav-links a i {
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover i {
    transform: translateY(-1px) scale(1.05);
}

.nav-links li.active a {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.05) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.12);
}

/* Responsive Nav Links (Tablet & Mobile) */
@media (max-width: 991.98px) {
    .header-container {
        padding: 0;
    }
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .nav-links a {
        justify-content: flex-start;
        padding: 0.75rem 1rem !important;
        width: 100%;
    }
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.15) !important;
        padding: 0.4rem 0.6rem !important;
        font-size: 0.9rem !important;
    }
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
    }
}

.app-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    min-height: calc(100vh - 200px);
}

/* Premium Footer Styling */
.app-footer {
    background-color: #0b0f19 !important; /* Dark slate blue visual anchoring color */
    color: #a0aec0;
    padding: 4rem 0 3rem 0 !important;
    border-top: 2px solid rgba(37, 99, 235, 0.2) !important; /* Elegant blue glow border */
    font-size: 0.875rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.08));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05) rotate(-3deg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand-text h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff !important;
}

.footer-brand-text p {
    color: #94a3b8 !important; /* Subtext under logo brand in light gray */
}

.footer-desc {
    color: #cbd5e0 !important; /* Lighter text for maximum readability on dark background */
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 0.5rem;
    color: #ffffff !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--warning);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links li a {
    color: #cbd5e0 !important; /* Highly readable link color */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.footer-links li a i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    color: var(--warning) !important;
}

.footer-links li a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

.footer-links li a:hover i {
    color: #ffffff !important;
}

.footer-contact {
    color: #cbd5e0 !important; /* Address and general texts */
}

.footer-contact a {
    color: #cbd5e0 !important;
    transition: all 0.2s ease;
}

.footer-contact a:hover {
    color: #ffffff !important;
}

.hover-white:hover {
    color: #ffffff !important;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08) !important;
    opacity: 1;
}

.bg-dark-glow {
    background-color: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(4px);
}

.copyright {
    color: #94a3b8 !important; /* Light text for copyright row */
}

.copyright strong {
    color: #ffffff !important;
}

.footer-badge .badge {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e0 !important;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Utility Cards & Elements */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background-color: var(--success-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
}

/* Alert States */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-info {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    color: #1e40af;
}

.alert-warning {
    background-color: var(--warning-light);
    border-left: 4px solid var(--warning);
    color: #92400e;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    white-space: nowrap;
}

.input-group-text-right {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    white-space: nowrap;
}

.input-group-text-middle {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    border-radius: 0;
    white-space: nowrap;
}

/* Adjust borders and radii for inputs inside groups */
.input-group .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-subgrid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0.5rem;
    align-items: center;
}

.input-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Form Step Wizard (Tabs) */
.form-wizard-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.wizard-tab {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.wizard-tab:hover {
    color: var(--primary);
}

.wizard-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.wizard-step-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Customization */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.table-custom th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.table-custom td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table-custom tr.section-row td {
    background-color: #f1f5f9;
    font-weight: 700;
    color: var(--text-primary);
}

.table-custom tr.subsection-row td {
    background-color: #f8fafc;
    font-weight: 600;
    padding-left: 1.5rem;
}

.table-custom tr.total-row td {
    background-color: var(--primary-light);
    font-weight: 700;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    color: var(--primary-hover);
}

.table-custom tr.grand-total-row td {
    background-color: var(--success-light);
    font-weight: 800;
    font-size: 1rem;
    border-top: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    color: var(--success-hover);
}

.table-custom td.text-right, .table-custom th.text-right {
    text-align: right;
}

/* Results Display Elements */
.result-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .result-hero {
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }
}

.result-hero-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-hero-text p {
    color: #93c5fd;
    font-size: 0.95rem;
}

.result-hero-price {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.result-hero-price span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd;
    margin-bottom: 0.25rem;
}

.result-hero-price h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #10b981;
}

.metric-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    text-align: center;
}

.metric-card span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.metric-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
    color: var(--text-primary);
}

/* Tab contents for results */
.result-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.result-tab-btn {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border: none;
    background-color: transparent;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.result-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.result-tab-content {
    display: none;
}

.result-tab-content.active {
    display: block;
}

/* Home / Dashboard styles */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 350px;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.15rem;
    color: #dbeafe;
    margin-bottom: 2rem;
    max-width: 700px;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Print Styling */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt;
    }
    
    .app-header, .app-footer, .btn, .no-print, .form-wizard-tabs, .result-tabs, .alert, .chart-container {
        display: none !important;
    }
    
    .app-main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .result-hero {
        background: none !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
        border-radius: 0 !important;
        padding: 1.5rem !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        box-shadow: none !important;
    }
    
    .result-hero-text h2 {
        font-size: 1.5rem !important;
    }
    
    .result-hero-text p {
        color: #555555 !important;
    }
    
    .result-hero-price {
        background: none !important;
        border: 1px solid #000000 !important;
        color: #000000 !important;
        padding: 0.75rem !important;
    }
    
    .result-hero-price span {
        color: #555555 !important;
    }
    
    .result-hero-price h3 {
        color: #000000 !important;
        font-size: 1.75rem !important;
    }
    
    .table-custom {
        font-size: 8.5pt !important;
    }
    
    .table-custom th, .table-custom td {
        border: 1px solid #dddddd !important;
        padding: 4px 6px !important;
    }
    
    .table-custom tr.section-row td {
        background-color: #eaeaea !important;
    }
    
    .table-custom tr.subsection-row td {
        background-color: #f7f7f7 !important;
    }
    
    .table-custom tr.total-row td {
        background-color: #eaeaea !important;
        border-top: 1.5pt solid #000000 !important;
        border-bottom: 1.5pt solid #000000 !important;
        color: #000000 !important;
    }
    
    .table-custom tr.grand-total-row td {
        background-color: #eaeaea !important;
        border-top: 2pt solid #000000 !important;
        border-bottom: 2pt solid #000000 !important;
        color: #000000 !important;
        font-size: 10pt !important;
    }
    
    .result-tab-content {
        display: block !important;
    }
    
    .result-tab-content:not(#summary-tab) {
        page-break-before: always;
    }
    
    .print-only-header {
        display: block !important;
        text-align: center;
        margin-bottom: 2rem;
        border-bottom: 2px solid #000000;
        padding-bottom: 0.75rem;
    }
    
    .print-only-header h1 {
        font-size: 1.5rem;
        font-weight: 800;
    }
    
    .print-only-header p {
        font-size: 0.85rem;
        color: #555555;
    }
}

.print-only-header {
    display: none;
}

/* Custom Premium Edu Pills & Navigation */
.custom-edu-pills {
    display: flex;
    flex-direction: column;
}

.custom-edu-pills .nav-link {
    background-color: transparent;
    border-radius: var(--radius-md) !important;
    border: none !important;
    border-left: 4px solid transparent !important;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.custom-edu-pills .nav-link:hover {
    background-color: #f1f5f9;
    transform: translateX(4px);
}

.custom-edu-pills .nav-link.active {
    background: linear-gradient(90deg, var(--primary-light) 0%, rgba(239, 246, 255, 0.3) 100%) !important;
    border-left: 4px solid var(--primary) !important;
    box-shadow: var(--shadow-sm);
}

.custom-edu-pills .icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.custom-edu-pills .nav-link.active .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.tab-label-text {
    line-height: 1.3;
}

/* Background Gradients & Colors for Icon Circle Badges */
.bg-primary-light { background-color: var(--primary-light); color: var(--primary); }
.bg-success-light { background-color: var(--success-light); color: var(--success); }
.bg-warning-light { background-color: var(--warning-light); color: #d97706; }
.bg-danger-light { background-color: #fee2e2; color: var(--danger); }
.bg-info-light { background-color: #ecfeff; color: #0891b2; }

/* Custom Premium Cards inside Edu */
.edu-detail-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    padding: 1.75rem;
    background-color: var(--bg-card);
}

.edu-detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.edu-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.edu-detail-card:hover .edu-icon-badge {
    transform: scale(1.08) rotate(-3deg);
}

.hover-slide-right {
    transition: var(--transition);
}
.hover-slide-right:hover {
    transform: translateX(6px);
}

.law-timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.law-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.law-timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 6px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.law-timeline-item.warning-item::before {
    background-color: var(--warning);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.law-timeline-item.danger-item::before {
    background-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   Premium & Professional Redesign - Portal Edukasi
   ========================================================================== */

/* Glassmorphism navigation wrapper for tabs */
.glass-nav-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    box-shadow: var(--shadow-md), 0 10px 25px -5px rgba(15, 23, 42, 0.04);
}

/* Horizontal tab list customization */
.premium-edu-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none; /* Firefox */
}

.premium-edu-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Tab link styles */
.premium-edu-tabs .nav-link {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: 1px solid transparent !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.premium-edu-tabs .nav-link:hover {
    background: rgba(241, 245, 249, 0.9);
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

/* Tab active state */
.premium-edu-tabs .nav-link.active {
    background: #ffffff !important;
    color: var(--primary) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
}

/* Tab active indicator line */
.premium-edu-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
    border-radius: 3px 3px 0 0;
}

/* Glowing icon badge */
.icon-badge-glow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.premium-edu-tabs .nav-link:hover .icon-badge-glow {
    transform: scale(1.06) rotate(3deg);
}

.premium-edu-tabs .nav-link.active .icon-badge-glow {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

/* Tab labels in horizontal mode */
.tab-header-title {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}

.tab-header-title span {
    font-size: 0.85rem;
    font-weight: 700;
}

.tab-header-title small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 0.1rem;
}

/* Content cards and warnings */
.premium-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
}

.premium-card:hover {
    box-shadow: 0 10px 35px -5px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

/* Red warning box styling */
.warning-premium-box {
    background: linear-gradient(135deg, #fffcfc 0%, #fff5f5 100%);
    border: 1px solid rgba(254, 226, 226, 0.8);
    border-top: 4px solid var(--danger);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px -2px rgba(239, 68, 68, 0.03);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.warning-premium-box:hover {
    box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.07);
    transform: translateY(-2px);
}

/* Dynamic progress bars for dashboard stats */
.stats-progress-container {
    margin-top: 0.75rem;
}

.stats-progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.stats-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing dot for timeline */
.glowing-timeline-dot::before {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 0 12px rgba(37, 99, 235, 0.3) !important;
}

.law-timeline-item.warning-item.glowing-timeline-dot-warning::before {
    background-color: var(--warning) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 0 12px rgba(245, 158, 11, 0.3) !important;
}

.law-timeline-item.danger-item.glowing-timeline-dot-danger::before {
    background-color: var(--danger) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 0 12px rgba(239, 68, 68, 0.3) !important;
}

.timeline-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Metric Card Custom Backgrounds & Colors for High Contrast */
.metric-card-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 1.5rem;
    transition: all 0.25s ease;
}
.metric-card-danger:hover {
    background-color: rgba(239, 68, 68, 0.12) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}
.metric-card-danger .metric-title {
    color: #b91c1c !important;
    font-size: 0.95rem;
    font-weight: 700;
}
.metric-card-danger .metric-value {
    color: #dc2626 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
}
.metric-card-danger .metric-subtext {
    color: #991b1b !important;
    opacity: 0.9;
    font-weight: 500;
}

.metric-card-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 1.5rem;
    transition: all 0.25s ease;
}
.metric-card-warning:hover {
    background-color: rgba(245, 158, 11, 0.12) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08);
}
.metric-card-warning .metric-title {
    color: #b45309 !important;
    font-size: 0.95rem;
    font-weight: 700;
}
.metric-card-warning .metric-value {
    color: #d97706 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
}
.metric-card-warning .metric-subtext {
    color: #92400e !important;
    opacity: 0.9;
    font-weight: 500;
}

.metric-card-primary {
    background-color: rgba(37, 99, 235, 0.08) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    padding: 1.5rem;
    transition: all 0.25s ease;
}
.metric-card-primary:hover {
    background-color: rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
}
.metric-card-primary .metric-title {
    color: #1d4ed8 !important;
    font-size: 0.95rem;
    font-weight: 700;
}
.metric-card-primary .metric-value {
    color: #2563eb !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
}
.metric-card-primary .metric-subtext {
    color: #1e40af !important;
    opacity: 0.9;
    font-weight: 500;
}

/* Image gallery warning styling */
.warning-image-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background-color: #ffffff;
    transition: all 0.3s ease;
}
.warning-image-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.warning-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.warning-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.warning-image-card:hover .warning-image-wrapper img {
    transform: scale(1.05);
}
.warning-image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.warning-image-caption {
    padding: 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}
.warning-image-caption h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #0f172a;
}
.warning-image-caption p {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Homepage Redesign Premium Styles */
.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.hero-image-container:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.solution-dark-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.25rem;
    color: #ffffff;
    height: 100%;
    transition: all 0.3s ease;
}

.solution-dark-card:hover {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.solution-dark-card .list-group-item {
    background-color: transparent !important;
    border: none !important;
    color: #cbd5e1 !important;
    padding: 0.75rem 0;
}

.solution-dark-card .list-group-item h6 {
    color: #ffffff !important;
    font-weight: 700;
}

.solution-dark-card .list-group-item p {
    color: #94a3b8 !important;
}

.marquee-notice-box {
    background-color: rgba(245, 158, 11, 0.04) !important;
    border: 1px solid rgba(245, 158, 11, 0.15) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1.25rem;
}

/* Premium CTA Banner with Dark Gradient & Glow */
.premium-cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.premium-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.premium-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, rgba(245, 158, 11, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.premium-cta-banner h3 {
    color: #ffffff !important;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.premium-cta-banner p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.premium-cta-banner .btn-cta-white {
    background-color: #ffffff !important;
    color: #1e3a8a !important;
    border: none !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    padding: 0.85rem 1.75rem;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-cta-banner .btn-cta-white:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.premium-cta-banner .btn-cta-white:active {
    transform: translateY(0);
}

/* Floating Help Widget */
.floating-help-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.fab-btn:active {
    transform: scale(0.95);
}

.fab-btn i {
    transition: transform 0.3s ease;
}

.floating-help-widget.active .fab-btn {
    background: #ef4444 !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
}

.floating-help-widget.active .fab-btn i {
    transform: rotate(135deg);
}

/* Pulsating Ring */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, 0.6);
    top: 0;
    left: 0;
    animation: fabPulse 2.5s infinite;
    pointer-events: none;
    box-sizing: border-box;
}

.floating-help-widget.active .pulse-ring {
    animation: none;
    display: none;
}

@keyframes fabPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tooltip */
.fab-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fab-btn:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Help Popup Panel */
.help-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-help-widget.active .help-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.help-popup-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.help-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-close-help {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-help:hover {
    color: white;
}

.help-popup-body {
    padding: 1.25rem;
}

.help-action-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    margin-bottom: 0.5rem;
}

.help-action-btn:last-child {
    margin-bottom: 0;
}

.help-action-btn i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.help-action-btn.wa-btn {
    border-color: rgba(37, 211, 102, 0.2);
}
.help-action-btn.wa-btn i {
    color: #25d366;
}
.help-action-btn.wa-btn:hover {
    background-color: rgba(37, 211, 102, 0.05);
    border-color: #25d366;
    transform: translateY(-1px);
}

.help-action-btn.call-btn {
    border-color: rgba(37, 99, 235, 0.2);
}
.help-action-btn.call-btn i {
    color: var(--primary);
}
.help-action-btn.call-btn:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.help-action-btn.email-btn {
    border-color: rgba(245, 158, 11, 0.2);
}
.help-action-btn.email-btn i {
    color: var(--warning);
}
.help-action-btn.email-btn:hover {
    background-color: rgba(245, 158, 11, 0.05);
    border-color: var(--warning);
    transform: translateY(-1px);
}

/* Navigation Dropdown Menu Style */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown .dropdown-menu-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links li.dropdown:hover .dropdown-menu-nav,
.nav-links li.dropdown:focus-within .dropdown-menu-nav {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu-nav li {
    width: 100%;
}

.dropdown-menu-nav a {
    color: #94a3b8 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.dropdown-menu-nav a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.dropdown-menu-nav li.active-child a {
    color: #ffffff !important;
    background-color: rgba(37, 99, 235, 0.15) !important;
    font-weight: 600;
}

/* Mobile responsive navigation dropdown */
@media (max-width: 991.98px) {
    .nav-links li.dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .nav-links li.dropdown .dropdown-menu-nav {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        padding-left: 1.5rem;
        margin-top: 0.25rem;
        border-radius: 0;
        opacity: 1;
        transform: none;
        display: none;
    }
    .nav-links li.dropdown:hover .dropdown-menu-nav {
        display: block;
    }
}


