
        :root {
            --saffron: #FF9933;
            --white: #FFFFFF;
            --green: #138808;
            --navy: #000080;
            --teal: #008080;
            --gold: #FFD700;
            --bihar-purple: #8e24aa;
            --light-bg: #f8f9fa;
            --dark-bg: #1a1a2e;
            --dark-card: #16213e;
        }
        
        body {
            background-color: var(--light-bg);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        
        body.dark-theme {
            background-color: var(--dark-bg);
            color: #e6e6e6;
        }
        
        .district-hero {
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            border-radius: 16px;
            padding: 3rem 2rem;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }
        
        .dark-theme .district-hero {
            background: linear-gradient(135deg, #1a3a5f, #0d2b4e);
        }
        
        .district-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, var(--saffron), var(--white), var(--green));
            z-index: 1;
        }
        
        .district-hero h1 {
            font-weight: 800;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
            font-size: 2.5rem;
        }
        
        .district-hero .lead {
            font-size: 1.25rem;
            max-width: 800px;
        }
        
        .nav-tabs .nav-link {
            font-weight: 600;
            color: #555;
            border: none;
            padding: 1rem 1.5rem;
        }
        
        .dark-theme .nav-tabs .nav-link {
            color: #ccc;
        }
        
        .nav-tabs .nav-link.active {
            color: var(--bihar-purple);
            border-bottom: 3px solid var(--bihar-purple);
            background: transparent;
        }
        
        .dark-theme .nav-tabs .nav-link.active {
            color: #c77dff;
        }
        
        .calculator-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-bottom: 2rem;
            border: none;
            transition: all 0.3s ease;
        }
        
        .dark-theme .calculator-card {
            background: var(--dark-card);
            box-shadow: 0 6px 15px rgba(0,0,0,0.3);
        }
        
        .calculator-card:hover {
            box-shadow: 0 12px 25px rgba(0,0,0,0.15);
            transform: translateY(-5px);
        }
        
        .calculator-card h2, .calculator-card h3 {
            color: var(--bihar-purple);
            position: relative;
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .dark-theme .calculator-card h2, .dark-theme .calculator-card h3 {
            color: #c77dff;
        }
        
        .calculator-card h2::after, .calculator-card h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--bihar-purple);
            border-radius: 2px;
        }
        
        .dark-theme .calculator-card h2::after, .dark-theme .calculator-card h3::after {
            background: #c77dff;
        }
        
        .form-label {
            font-weight: 600;
            color: #444;
        }
        
        .dark-theme .form-label {
            color: #ddd;
        }
        
        .form-control, .form-select {
            border-radius: 10px;
            padding: 0.75rem 1rem;
            border: 2px solid #e0e0e0;
            background-color: #fff;
            color: #333;
        }
        
        .dark-theme .form-control, .dark-theme .form-select {
            background-color: #2d3748;
            border-color: #4a5568;
            color: #e2e8f0;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: var(--bihar-purple);
            box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.2);
        }
        
        .dark-theme .form-control:focus, .dark-theme .form-select:focus {
            border-color: #c77dff;
            box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.3);
        }
        
        .btn-primary {
            background-color: var(--bihar-purple);
            border-color: var(--bihar-purple);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .dark-theme .btn-primary {
            background-color: #7b1fa2;
            border-color: #7b1fa2;
        }
        
        .btn-primary:hover {
            background-color: #7b1fa2;
            border-color: #7b1fa2;
            transform: translateY(-2px);
        }
        
        .result-box {
            background: rgba(142, 36, 170, 0.05);
            border-left: 4px solid var(--bihar-purple);
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            display: none;
        }
        
        .dark-theme .result-box {
            background: rgba(142, 36, 170, 0.15);
            border-left: 4px solid #c77dff;
        }
        
        .unit-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1.5rem;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .dark-theme .unit-table {
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        
        .unit-table th {
            background-color: var(--bihar-purple);
            color: white;
            font-weight: 600;
            padding: 1rem;
            text-align: left;
        }
        
        .dark-theme .unit-table th {
            background-color: #7b1fa2;
        }
        
        .unit-table td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #eee;
        }
        
        .dark-theme .unit-table td {
            border-bottom: 1px solid #2d3748;
        }
        
        .unit-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        .dark-theme .unit-table tr:nth-child(even) {
            background-color: rgba(45, 55, 72, 0.5);
        }
        
        .unit-table tr:hover {
            background-color: rgba(142, 36, 170, 0.05);
        }
        
        .dark-theme .unit-table tr:hover {
            background-color: rgba(142, 36, 170, 0.2);
        }
        
        .district-info {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        }
        
        .dark-theme .district-info {
            background: var(--dark-card);
            box-shadow: 0 6px 15px rgba(0,0,0,0.3);
        }
        
        .district-info h4 {
            color: var(--bihar-purple);
            position: relative;
            padding-bottom: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .dark-theme .district-info h4 {
            color: #c77dff;
        }
        
        .district-info h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--bihar-purple);
        }
        
        .dark-theme .district-info h4::after {
            background: #c77dff;
        }
        
        .info-card {
            background: rgba(142, 36, 170, 0.05);
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            transition: all 0.3s;
        }
        
        .dark-theme .info-card {
            background: rgba(142, 36, 170, 0.15);
        }
        
        .info-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        }
        
        .dark-theme .info-card:hover {
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }
        
        .info-card h5 {
            color: var(--bihar-purple);
            font-weight: 600;
        }
        
        .dark-theme .info-card h5 {
            color: #c77dff;
        }
        
        .breadcrumb {
            background-color: rgba(255,255,255,0.8);
            border-radius: 50px;
            padding: 0.5rem 1rem;
        }
        
        .dark-theme .breadcrumb {
            background-color: rgba(26, 32, 44, 0.8);
        }
        
        .schema-container {
            display: none;
        }
        
        @media (max-width: 768px) {
            .calculator-card {
                padding: 1.5rem;
            }
            
            .district-hero {
                padding: 2rem 1rem;
            }
            
            .district-hero h1 {
                font-size: 2rem;
            }
        }
    