/* ==========================================================================
   Meghalaya Taxation Portal - Vaadin Lumo (Dark Primary) Minimalistic Theme
   ========================================================================== */

:root {
    /* Vaadin Lumo Design Tokens with Dark / Obsidian Primary */
    --lumo-primary-color: #0f172a;
    /* Deep obsidian / slate-900 */
    --lumo-primary-hover: #1e293b;
    /* Slate-800 */
    --lumo-primary-active: #020617;
    /* Slate-950 */
    --lumo-primary-contrast: #ffffff;

    /* Base Surfaces */
    --lumo-body-bg: #f8fafc;
    /* Slate-50: Crisp light background */
    --lumo-surface-bg: #ffffff;
    /* Pure white card surface */
    --lumo-header-bg: #090d16;
    /* Deep obsidian navbar */
    --lumo-banner-bg: #0f172a;
    /* Dark hero banner */

    /* Typography & Contrast */
    --lumo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --lumo-heading-color: #0f172a;
    --lumo-body-color: #334155;
    /* Slate-700 */
    --lumo-secondary-text: #64748b;
    /* Slate-500 */
    --lumo-tertiary-text: #94a3b8;
    /* Slate-400 */

    /* Borders & Outlines */
    --lumo-border-color: #e2e8f0;
    /* Slate-200 */
    --lumo-border-color-subtle: #f1f5f9;
    /* Slate-100 */
    --lumo-border-color-focus: #0f172a;
    --lumo-border-radius-xs: 4px;
    --lumo-border-radius-s: 6px;
    --lumo-border-radius-m: 8px;
    --lumo-border-radius-l: 12px;
    --lumo-border-radius-pill: 9999px;

    /* Elevation & Shadows */
    --lumo-box-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lumo-box-shadow-s: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --lumo-box-shadow-m: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --lumo-box-shadow-hover: 0 10px 20px -5px rgba(0, 0, 0, 0.06), 0 6px 10px -4px rgba(0, 0, 0, 0.04);

    /* Semantic Accents (Refined & Minimalist) */
    --accent-emerald: #059669;
    --accent-emerald-bg: #ecfdf5;
    --accent-emerald-border: #a7f3d0;

    --accent-blue: #2563eb;
    --accent-blue-bg: #eff6ff;
    --accent-blue-border: #bfdbfe;

    --accent-amber: #d97706;
    --accent-amber-bg: #fffbeb;
    --accent-amber-border: #fde68a;

    --accent-rose: #dc2626;
    --accent-rose-bg: #fef2f2;
    --accent-rose-border: #fecaca;

    --accent-violet: #7c3aed;
    --accent-violet-bg: #f5f3ff;
    --accent-violet-border: #ddd6fe;

    --accent-teal: #0d9488;
    --accent-teal-bg: #f0fdfa;
    --accent-teal-border: #99f6e4;
}

/* Base Reset & Typography */
body {
    background-color: var(--lumo-body-bg);
    color: var(--lumo-body-color);
    font-family: var(--lumo-font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Header & Navbar */
.navbar-portal {
    background-color: var(--lumo-header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.875rem 0;
}

.portal-brand-logo {
    height: 44px;
    width: auto;
    background: #ffffff;
    border-radius: var(--lumo-border-radius-s);
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.portal-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.portal-brand-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

/* Vaadin-Style Buttons */
.btn-portal-register {
    background-color: #ffffff;
    color: var(--lumo-primary-color);
    border: 1px solid #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1.15rem;
    border-radius: var(--lumo-border-radius-s);
    transition: all 0.2s ease;
    box-shadow: var(--lumo-box-shadow-s);
}

.btn-portal-register:hover,
.btn-portal-register:focus {
    background-color: #f1f5f9;
    color: #000000;
    border-color: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: var(--lumo-box-shadow-m);
}

.btn-portal-menu {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 1.15rem;
    border-radius: var(--lumo-border-radius-s);
    transition: all 0.2s ease;
}

.btn-portal-menu:hover,
.btn-portal-menu:focus {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.portal-dropdown-menu {
    border: 1px solid var(--lumo-border-color);
    border-radius: var(--lumo-border-radius-m);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    padding: 0.5rem;
    min-width: 220px;
    margin-top: 0.5rem;
}

.portal-dropdown-menu .dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    padding: 0.6rem 0.85rem;
    border-radius: var(--lumo-border-radius-xs);
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
}

.portal-dropdown-menu .dropdown-item:hover,
.portal-dropdown-menu .dropdown-item:focus {
    background-color: #f1f5f9;
    color: var(--lumo-primary-color);
}

.portal-dropdown-menu .dropdown-divider {
    border-top: 1px solid var(--lumo-border-color);
    margin: 0.4rem 0;
}

/* Hero Banner */
.taxation-banner {
    background: linear-gradient(180deg, #090d16 0%, #0f172a 100%) !important;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.banner-badge-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--lumo-border-radius-m);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
}

.portal-service-chip {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--lumo-border-radius-s);
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f1f5f9;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.portal-service-chip:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.portal-service-chip i {
    color: #38bdf8;
    margin-right: 0.65rem;
    font-size: 0.85rem;
}

/* How To Register - Process Flow Section */
.how-to-register-section {
    padding: 2.25rem 0 0.5rem;
}

.flow-card-container {
    background: var(--lumo-surface-bg);
    border: 1px solid var(--lumo-border-color);
    border-radius: var(--lumo-border-radius-l);
    box-shadow: var(--lumo-box-shadow-s);
    padding: 1.75rem 2rem;
    position: relative;
}

.flow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--lumo-border-color-subtle);
}

.flow-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--lumo-heading-color);
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
}

.flow-title i {
    color: var(--lumo-primary-color);
    margin-right: 0.65rem;
}

.flow-subtitle {
    font-size: 0.8125rem;
    color: var(--lumo-secondary-text);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.flow-step-col {
    position: relative;
}

.flow-step-box {
    background: #ffffff;
    border: 1px solid var(--lumo-border-color);
    border-radius: var(--lumo-border-radius-m);
    padding: 1.25rem 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.flow-step-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--lumo-box-shadow-hover);
    border-color: #cbd5e1;
}

.flow-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background-color: var(--lumo-primary-color);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--lumo-border-radius-pill);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.flow-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #f1f5f9;
    color: var(--lumo-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.flow-step-box:hover .flow-step-icon {
    background-color: var(--lumo-primary-color);
    color: #ffffff;
    border-color: var(--lumo-primary-color);
    transform: scale(1.05);
}

.flow-step-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lumo-heading-color);
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.flow-step-desc {
    font-size: 0.75rem;
    color: var(--lumo-secondary-text);
    line-height: 1.35;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .flow-step-col:not(:last-child)::after {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: -3px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        color: #94a3b8;
        z-index: 5;
    }
}

/* ==========================================================================
   Master Enclosed Statistics Section & Modern Ring Cards
   ========================================================================== */

.stats-master-section {
    padding: 1rem 0 3rem;
}

.stats-master-panel {
    background: var(--lumo-surface-bg);
    border: 1px solid var(--lumo-border-color);
    border-radius: var(--lumo-border-radius-l);
    box-shadow: var(--lumo-box-shadow-s);
    padding: 2.25rem 2.5rem;
    position: relative;
}

.stats-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lumo-border-color);
    margin-bottom: 2rem;
}

.stats-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lumo-heading-color);
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
}

.stats-panel-title i {
    color: var(--lumo-primary-color);
}

.stats-panel-subtitle {
    font-size: 0.825rem;
    color: var(--lumo-secondary-text);
    margin: 0.35rem 0 0;
}

.stats-section-block {
    position: relative;
}

.stats-block-header {
    margin-bottom: 1.5rem;
}

.stats-block-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lumo-heading-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.stats-section-divider {
    height: 1px;
    background: var(--lumo-border-color);
    margin: 2.5rem 0;
}

/* ==========================================================================
   Chart Cards & Visual Analytics
   ========================================================================== */

.chart-card {
    background: #ffffff;
    border: 1px solid var(--lumo-border-color);
    border-radius: var(--lumo-border-radius-m);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1.5rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lumo-box-shadow-hover);
    border-color: #cbd5e1;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lumo-border-color-subtle);
}

.chart-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lumo-heading-color);
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
}

.chart-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--lumo-border-radius-pill);
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.doughnut-wrapper {
    width: 100%;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bar-chart-wrapper {
    width: 100%;
    height: 310px;
    position: relative;
}

.chart-card-footer {
    border-top: 1px solid var(--lumo-border-color-subtle);
    margin-top: 1rem;
    padding-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--lumo-secondary-text);
}

/* Section Header (Legacy Support) */
.section-header-wrap {
    text-align: center;
    margin: 2.5rem 0 2rem;
}

.section-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lumo-heading-color);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.section-subtitle-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: var(--lumo-border-radius-pill);
    border: 1px solid #e2e8f0;
}

/* Overall Statistics - Modern Minimalist Ring Cards */
.stat-item {
    margin-bottom: 1.25rem;
}

.overall-stat-card {
    background: #ffffff;
    border: 1px solid var(--lumo-border-color);
    border-radius: var(--lumo-border-radius-m);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1.75rem 1rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.overall-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lumo-box-shadow-hover);
    border-color: #cbd5e1;
}

/* Modern Circular Rings for Overall Stats */
.circle-container {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    border: 3.5px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.circle-container i {
    font-size: 1.75rem;
    transition: transform 0.25s ease;
}

.overall-stat-card:hover .circle-container {
    transform: scale(1.06);
}

.overall-stat-card:hover .circle-container i {
    transform: scale(1.08);
}

/* High-Contrast Modern Ring Colors with Subtle Depth */
.ring-blue {
    border-color: #2563eb;
    color: #2563eb;
    background: radial-gradient(circle, #eff6ff 50%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), 0 4px 12px rgba(37, 99, 235, 0.1);
}

.ring-green {
    border-color: #059669;
    color: #059669;
    background: radial-gradient(circle, #ecfdf5 50%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.08), 0 4px 12px rgba(5, 150, 105, 0.1);
}

.ring-red {
    border-color: #dc2626;
    color: #dc2626;
    background: radial-gradient(circle, #fef2f2 50%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08), 0 4px 12px rgba(220, 38, 38, 0.1);
}

.ring-orange {
    border-color: #d97706;
    color: #d97706;
    background: radial-gradient(circle, #fffbeb 50%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.08), 0 4px 12px rgba(217, 119, 6, 0.1);
}

.ring-teal {
    border-color: #0d9488;
    color: #0d9488;
    background: radial-gradient(circle, #f0fdfa 50%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08), 0 4px 12px rgba(13, 148, 136, 0.1);
}

.ring-purple {
    border-color: #7c3aed;
    color: #7c3aed;
    background: radial-gradient(circle, #f5f3ff 50%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08), 0 4px 12px rgba(124, 58, 237, 0.1);
}

/* Metric Numerals */
.stat-number {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--lumo-heading-color);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

/* Metric Caption */
.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lumo-secondary-text);
    margin-bottom: 0;
}

/* Detailed Filter Section */
.filter-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--lumo-border-color-subtle);
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lumo-heading-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-title i {
    color: var(--lumo-primary-color);
    margin-right: 0.65rem;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lumo-secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

/* Vaadin-Style Form Controls */
.filter-card .form-control,
.filter-card .form-select,
.vaadin-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--lumo-border-radius-s) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 0.85rem !important;
    height: auto !important;
    min-height: 40px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus,
.vaadin-select:focus {
    border-color: var(--lumo-primary-color) !important;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12) !important;
    outline: none !important;
}

/* Detailed Monthly Breakdown Cards */
.dashboard-grid {
    padding-top: 1.5rem;
}

.stat-card {
    background: var(--lumo-surface-bg) !important;
    border: 1px solid var(--lumo-border-color) !important;
    border-radius: var(--lumo-border-radius-m) !important;
    box-shadow: var(--lumo-box-shadow-s) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    height: 100%;
    margin-bottom: 0 !important;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lumo-box-shadow-hover) !important;
    border-color: #cbd5e1 !important;
}

.stat-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 1.5rem !important;
    min-height: 120px;
}

.card-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 1rem;
}

/* Modern Card Titles & Dates */
.card-title-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.card-date-modern {
    font-size: 0.75rem;
    color: var(--lumo-secondary-text);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.card-date-modern i {
    margin-right: 5px;
    font-size: 0.75rem;
    color: var(--lumo-tertiary-text);
}

.card-value-hero {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--lumo-heading-color);
    letter-spacing: -0.02em;
    text-align: right;
}

/* Icon Badges */
.icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--lumo-border-radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.bg-light-blue {
    background-color: var(--accent-blue-bg);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue-border);
}

.bg-light-green {
    background-color: var(--accent-emerald-bg);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-border);
}

.bg-light-red {
    background-color: var(--accent-rose-bg);
    color: var(--accent-rose);
    border: 1px solid var(--accent-rose-border);
}

.bg-light-amber {
    background-color: var(--accent-amber-bg);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber-border);
}

.bg-light-purple {
    background-color: var(--accent-violet-bg);
    color: var(--accent-violet);
    border: 1px solid var(--accent-violet-border);
}

.bg-light-teal {
    background-color: var(--accent-teal-bg);
    color: var(--accent-teal);
    border: 1px solid var(--accent-teal-border);
}

.bg-light-slate {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Main Footer */
.main-footer {
    background-color: var(--lumo-header-bg);
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4rem;
}

.footer-top {
    padding: 3.5rem 0 2.5rem;
}

.footer-brand-text {
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.footer-dept-title {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.footer-dept-sub {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
}

.footer-contact-item i {
    width: 20px;
    color: #cbd5e1;
}

.footer-link-heading {
    color: #f8fafc;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.nic-logo-footer {
    height: 38px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nic-logo-footer:hover {
    opacity: 1;
}

.gov-logo-footer {
    height: 55px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.social-circle {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--lumo-border-radius-pill);
    color: #cbd5e1;
    margin-right: 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-circle:hover {
    background: #ffffff;
    color: var(--lumo-primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #05070b;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
    transition: color 0.15s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Modals */
.modal-content {
    border-radius: var(--lumo-border-radius-m) !important;
    border: 1px solid var(--lumo-border-color) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.modal-header {
    border-bottom: 1px solid var(--lumo-border-color);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lumo-heading-color);
}

.modal-body {
    padding: 1.5rem;
    color: #334155;
    font-size: 0.925rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid var(--lumo-border-color);
    padding: 1rem 1.5rem;
}

.btn-vaadin-primary {
    background-color: var(--lumo-primary-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--lumo-primary-color) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--lumo-border-radius-s);
    transition: all 0.15s ease;
}

.btn-vaadin-primary:hover,
.btn-vaadin-primary:focus {
    background-color: var(--lumo-primary-hover) !important;
    border-color: var(--lumo-primary-hover) !important;
}

#dynamicModal .modal-dialog {
    max-width: 65vw;
    width: 65vw;
    margin: 3vh auto;
}

@media (max-width: 991px) {
    #dynamicModal .modal-dialog {
        max-width: 92vw;
        width: 92vw;
    }
}


/* ==========================================================================
   Homepage - About MegTaxation Portal & Informative Key Figures
   ========================================================================== */

.portal-about-section {
    padding: 2.25rem 0 1rem;
}

.about-master-panel {
    background: #ffffff;
    border: 1px solid var(--lumo-border-color, #e2e8f0);
    border-radius: var(--lumo-border-radius-l, 12px);
    box-shadow: var(--lumo-box-shadow-s, 0 1px 3px rgba(0, 0, 0, 0.04));
    padding: 2.25rem 2.5rem;
    position: relative;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e3a8a;
    background: #eff6ff;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
    margin-bottom: 0.75rem;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--lumo-heading-color, #0f172a);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.about-lead {
    font-size: 1rem;
    color: #475569;
    line-height: 1.65;
    max-width: 920px;
    margin-bottom: 2rem;
}

/* Informative Stat Cards Grid */
.about-figures-grid {
    margin-bottom: 2rem;
}

.about-figure-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.about-figure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.about-figure-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.08);
}

.about-figure-card.theme-emerald::before { background: #059669; }
.about-figure-card.theme-blue::before { background: #2563eb; }
.about-figure-card.theme-amber::before { background: #d97706; }
.about-figure-card.theme-purple::before { background: #7c3aed; }

.about-figure-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.about-figure-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.theme-emerald .about-figure-icon { background: #ecfdf5; color: #059669; }
.theme-blue .about-figure-icon { background: #eff6ff; color: #2563eb; }
.theme-amber .about-figure-icon { background: #fffbeb; color: #d97706; }
.theme-purple .about-figure-icon { background: #f5f3ff; color: #7c3aed; }

.about-figure-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.about-figure-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.about-figure-lbl {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.about-figure-desc {
    font-size: 0.785rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 0;
}

.about-figure-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.775rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.15s ease;
}

.about-figure-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Narrative & Pillars Layout */
.about-narrative-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
}

.about-narrative-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
}

.about-narrative-text {
    font-size: 0.885rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-statutory-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.about-statutory-badge {
    font-size: 0.725rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.about-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.about-pillar-item:last-child {
    margin-bottom: 0;
}

.about-pillar-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 0.85rem;
    margin-top: 2px;
}

.about-pillar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.about-pillar-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 0;
}

/* Actions Strip */
.about-actions-strip {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.about-statutory-note {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .about-master-panel {
        padding: 1.5rem 1.25rem;
    }
    
    .about-title {
        font-size: 1.4rem;
    }
    
    .about-figure-num {
        font-size: 1.5rem;
    }
}
