/* BharatWISP Professional Theme with Red Branding */
:root {
    --brand-red: #E60012;
    --brand-dark-red: #B8000E;
    --primary-blue: #1e3a8a;
    --secondary-gray: #64748b;
    --light-gray: #f8fafc;
    --dark-gray: #334155;
    --success-green: #059669;
    --warning-orange: #d97706;
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body { 
    background: var(--gradient-bg);
    min-height: 100vh; 
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
}

.card { 
    border: none; 
    border-radius: 12px; 
    box-shadow: var(--card-shadow);
    background: white;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.navbar { 
    background: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--brand-red);
}

.navbar-brand {
    color: var(--brand-red) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: var(--brand-red) !important;
}

.sidebar { 
    background: white;
    border-radius: 12px; 
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--brand-red);
}

.nav-link { 
    color: var(--dark-gray);
    border-radius: 8px; 
    margin: 2px 0; 
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover { 
    background: rgba(230, 0, 18, 0.1);
    color: var(--brand-red);
    transform: translateX(4px);
}

.nav-link.active { 
    background: var(--brand-red);
    color: white !important;
}

.stat-card { 
    background: white;
    border-radius: 12px; 
    transition: all 0.3s ease;
    border-left: 4px solid var(--brand-red);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-primary { 
    background: var(--brand-red);
    border: none; 
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover { 
    background: var(--brand-dark-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.4);
}

.btn-success {
    background: var(--success-green);
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-orange);
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-info {
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.card-header.bg-primary { 
    background: var(--brand-red) !important;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.card-header.bg-success {
    background: var(--success-green) !important;
    border-radius: 12px 12px 0 0 !important;
}

.card-header.bg-info {
    background: var(--primary-blue) !important;
    border-radius: 12px 12px 0 0 !important;
}

.badge.bg-primary { 
    background: var(--brand-red) !important; 
}

.progress-bar { 
    background: var(--brand-red);
}

.quick-action { 
    transition: all 0.3s ease;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.quick-action:hover { 
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(248, 250, 252, 0.8);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.form-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.text-primary { color: var(--brand-red) !important; }
.bg-primary { background: var(--brand-red) !important; }

.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    border-left-color: var(--success-green);
    color: #047857;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #dc2626;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #1d4ed8;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--brand-red) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
}

.login-card {
    transition: all 0.4s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.login-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-dark-red));
    color: white;
}

.balance-card {
    background: linear-gradient(135deg, var(--warning-orange), #f59e0b);
    color: white;
    border-radius: 12px;
}

.complaint-form {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: white;
}

.usage-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 600;
}

.text-white { color: white !important; }

@media (max-width: 768px) {
    .sidebar {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}