
        :root {
            --saffron: #FF9933;
            --white: #FFFFFF;
            --green: #138808;
            --navy: #000080;
            --teal: #008080;
            --gold: #FFD700;
            --bihar-purple: #6a0dad;
        }
        
        body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
        }
        
        .district-hero {
            background: linear-gradient(135deg, #8e44ad, #6a0dad);
            border-radius: 16px;
            color: white;
            padding: 3rem 2rem;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }
        
        .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: 2;
        }
        
        .district-hero h1 {
            font-weight: 800;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
            font-size: 2.5rem;
        }
        
        .district-hero p {
            font-size: 1.1rem;
            max-width: 700px;
            opacity: 0.9;
        }
        
        .card-tool {
            border-radius: 16px;
            border: none;
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            overflow: hidden;
            margin-bottom: 2rem;
            background: white;
        }
        
        .card-tool:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.15);
        }
        
        .card-header {
            background: linear-gradient(135deg, var(--bihar-purple), #8e44ad);
            color: white;
            font-weight: 700;
            padding: 1.2rem 1.5rem;
            border: none;
            font-size: 1.25rem;
        }
        
        .card-body {
            padding: 1.8rem;
        }
        
        .form-label {
            font-weight: 600;
            color: #444;
            margin-bottom: 0.5rem;
        }
        
        .form-control, .form-select {
            border-radius: 10px;
            padding: 0.75rem 1rem;
            border: 1px solid #ddd;
            transition: all 0.3s;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: var(--bihar-purple);
            box-shadow: 0 0 0 0.25rem rgba(106, 13, 173, 0.2);
        }
        
        .btn-primary {
            background: var(--bihar-purple);
            border-color: var(--bihar-purple);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .btn-primary:hover {
            background: #5a0c9c;
            border-color: #5a0c9c;
            transform: translateY(-2px);
        }
        
        .result-box {
            background: #f0f2f5;
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border-left: 4px solid var(--bihar-purple);
        }
        
        .result-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--bihar-purple);
            margin: 0.5rem 0;
        }
        
        .shape-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .shape-btn {
            flex: 1;
            min-width: 120px;
            text-align: center;
            padding: 0.8rem;
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .shape-btn.active, .shape-btn:hover {
            border-color: var(--bihar-purple);
            background: rgba(106, 13, 173, 0.05);
            color: var(--bihar-purple);
        }
        
        .shape-btn i {
            font-size: 1.5rem;
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .unit-info {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 2rem;
            margin-top: 2rem;
        }
        
        .unit-info h2 {
            color: var(--bihar-purple);
            border-bottom: 2px solid var(--bihar-purple);
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
        }
        
        .info-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        }
        
        .info-card h3 {
            color: var(--bihar-purple);
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }
        
        .conversion-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }
        
        .conversion-table th {
            background: rgba(106, 13, 173, 0.1);
            color: var(--bihar-purple);
            padding: 0.75rem;
            text-align: left;
        }
        
        .conversion-table td {
            padding: 0.75rem;
            border-bottom: 1px solid #eee;
        }
        
        .conversion-table tr:nth-child(even) {
            background: #f9f9f9;
        }
        
        .breadcrumb {
            background-color: transparent;
            padding: 0.75rem 0;
            margin-bottom: 1rem;
        }
        
        .breadcrumb-item a {
            color: var(--bihar-purple);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: #6c757d;
        }
        
        @media (max-width: 768px) {
            .shape-btn {
                min-width: 100px;
            }
            
            .card-body {
                padding: 1.5rem 1rem;
            }
            
            .district-hero h1 {
                font-size: 2rem;
            }
        }
        
        /* Print optimization */
        @media print {
            .navbar, .breadcrumb, .btn, .shape-selector, footer {
                display: none;
            }
            
            body {
                background: white;
                font-size: 12pt;
            }
            
            .card-tool {
                box-shadow: none;
                border: 1px solid #ddd;
                page-break-inside: avoid;
            }
        }
