/* ==========================================================================
   MAHA MUNICIPAL PROPERTY MANAGEMENT SYSTEM (महामालमत्ता ई-गव्हर्नन्स प्लॅटफॉर्म)
   Core Stylesheet - Poppins Typography, Modern UI & User-Friendly Styling
   Developed by OMIAI TECH LLP
   ========================================================================== */

/* 1. Google Fonts: Poppins (Latin) & Noto Sans Devanagari (Marathi) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* 2. Global CSS Custom Properties & Design Tokens */
:root {
    --bs-body-font-family: 'Poppins', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    
    /* Government Brand Identity */
    --gov-navy-900: #06152b;
    --gov-navy-800: #0b1f3d;
    --gov-navy-700: #102a4e;
    --gov-blue-600: #1d4ed8;
    --gov-blue-500: #2563eb;
    --gov-blue-400: #3b82f6;
    
    /* Vibrant Warm Accents */
    --gov-saffron: #f97316;
    --gov-saffron-dark: #ea580c;
    --gov-gold: #f59e0b;
    --gov-emerald: #10b981;
    --gov-rose: #f43f5e;
    --gov-purple: #8b5cf6;
    
    /* Backgrounds & Surfaces */
    --gov-surface-bg: #f8fafc;
    --gov-card-bg: #ffffff;
    --gov-border-color: #e2e8f0;
    --gov-border-subtle: rgba(226, 232, 240, 0.8);
    
    /* Refined Multi-Layer Shadows */
    --gov-shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    --gov-shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px -1px rgba(16, 24, 40, 0.1);
    --gov-shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.1);
    --gov-shadow-lg: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -4px rgba(16, 24, 40, 0.1);
    --gov-shadow-xl: 0 20px 25px -5px rgba(16, 24, 40, 0.1), 0 8px 10px -6px rgba(16, 24, 40, 0.1);
    --gov-shadow-glow: 0 0 20px rgba(249, 115, 22, 0.35);
}

/* 3. Global Typography Application */
html, body {
    font-family: var(--bs-body-font-family);
    background-color: var(--gov-surface-bg);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

button, input, optgroup, select, textarea {
    font-family: var(--bs-body-font-family);
}

/* 4. Custom Thin Modern Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
}

/* 5. Top Government Status Bar */
.gov-top-bar {
    background: linear-gradient(90deg, #991b1b 0%, #c2410c 35%, #ea580c 70%, #f97316 100%);
    color: #ffffff;
    padding: 6px 20px;
    font-size: 0.84rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.gov-top-bar a.btn {
    font-family: var(--bs-body-font-family);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

/* 6. Header Styling */
.gov-header {
    background: #ffffff;
    border-bottom: 2px solid var(--gov-border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: relative;
    z-index: 100;
}

.gov-header h4 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* 7. Fancier High-Tech Sidebar Menu Column */
.fancy-sidebar {
    background: linear-gradient(180deg, #071526 0%, #0d223a 40%, #091a2e 100%);
    color: #e2e8f0;
    min-height: calc(100vh - 110px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 90;
    transition: all 0.3s ease;
}

/* Officer Mini Profile Badge in Sidebar */
.sidebar-profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 4px 12px 16px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-profile-card .avatar-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.35);
    position: relative;
}

.sidebar-profile-card .online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #071526;
    border-radius: 50%;
}

/* Sidebar Section Headers */
.sidebar-category-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 12px 18px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Fancier Nav Links */
.fancy-sidebar .nav-link {
    color: #cbd5e1;
    padding: 8px 14px;
    margin: 2px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}

.fancy-sidebar .nav-link .icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 11px;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.fancy-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
}

.fancy-sidebar .nav-link:hover .icon-box {
    background: rgba(249, 115, 22, 0.25);
    color: #f97316;
}

.fancy-sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.38);
}

.fancy-sidebar .nav-link.active .icon-box {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.fancy-sidebar .nav-link .menu-badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 6px;
    font-weight: 600;
}

/* 8. Modern Cards & Stat Containers */
.card {
    border-radius: 14px;
    border: 1px solid var(--gov-border-subtle);
    box-shadow: var(--gov-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    background-color: var(--gov-card-bg);
}

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

.stat-card-modern {
    border-radius: 14px;
    border: 1px solid var(--gov-border-subtle);
    background: #ffffff;
    box-shadow: var(--gov-shadow-sm);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--gov-shadow-lg);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.stat-card-modern.border-accent-saffron::before {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

.stat-card-modern.border-accent-emerald::before {
    background: linear-gradient(90deg, #059669, #10b981);
}

.stat-card-modern.border-accent-rose::before {
    background: linear-gradient(90deg, #e11d48, #f43f5e);
}

.stat-card-modern.border-accent-purple::before {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

/* 9. Visually Appealing Graphs & Charts Enhancements */
.chart-container-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--gov-border-subtle);
    box-shadow: var(--gov-shadow-sm);
    padding: 20px;
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gov-border-color);
}

.chart-header h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #0f172a;
}

/* 10. Tables with Enhanced Clean Contrast */
.table {
    font-size: 0.88rem;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 12px 14px;
    border-bottom-color: var(--gov-border-color);
}

.table thead th {
    font-weight: 600;
    letter-spacing: -0.01em;
    background-color: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #cbd5e1;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(241, 245, 249, 0.65);
}

/* 11. Modern Pill Badges */
.badge {
    font-family: var(--bs-body-font-family);
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 8px;
    padding: 5px 9px;
}

.badge-soft-emerald {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-soft-blue {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-soft-rose {
    background-color: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.badge-soft-amber {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-soft-purple {
    background-color: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

/* 12. Buttons & Interactions */
.btn {
    font-family: var(--bs-body-font-family);
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border-color: #1e40af;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-color: #f59e0b;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    border-color: #d97706;
    color: #0f172a;
    transform: translateY(-1px);
}

/* 13. Official Portal Footer Styling (Developed by OMIAI TECH LLP) */
.gov-portal-footer {
    background: #ffffff;
    border-top: 1px solid var(--gov-border-color);
    margin-top: 3rem;
    padding: 2.5rem 1.5rem 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.gov-portal-footer .developer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    color: #166534;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
    transition: all 0.2s ease;
    text-decoration: none;
}

.gov-portal-footer .developer-pill:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #14532d;
    box-shadow: 0 4px 10px rgba(22, 101, 52, 0.15);
    transform: translateY(-1px);
}

.gov-portal-footer .developer-pill i {
    color: #15803d;
    font-size: 1rem;
}

.gov-portal-footer .legal-line {
    font-size: 0.78rem;
    color: #94a3b8;
}
