:root {
    --primary-color: #2e7d32;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6d00;
    --north-india: #8e24aa;
    --east-india: #1565c0;
    --west-india: #ff6d00;
    --south-india: #2e7d32;
    --card-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

body {
    background-color: #fafafa;
    font-family: 'Poppins', sans-serif;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.hero-section {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.state-container {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.state-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px !important;
}

.state-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.state-card .card-body {
    padding: 1.5rem;
}

.state-card.north {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.state-card.east {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.state-card.west {
    background: linear-gradient(135deg, #ffecb3, #ffe082);
}

.state-card.south {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.state-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

.north-badge {
    background-color: var(--north-india);
    color: white;
}

.east-badge {
    background-color: var(--east-india);
    color: white;
}

.west-badge {
    background-color: var(--west-india);
    color: #333;
}

.south-badge {
    background-color: var(--south-india);
    color: white;
}

.region-heading {
    position: relative;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.region-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.north-heading::after {
    background-color: var(--north-india);
}

.east-heading::after {
    background-color: var(--east-india);
}

.west-heading::after {
    background-color: var(--west-india);
}

.south-heading::after {
    background-color: var(--south-india);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 14px;
    color: #757575;
}

.search-container input {
    padding-left: 50px;
    padding-right: 20px;
    height: 50px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.unit-badge {
    background-color: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.state-image {
    height: 120px;
    object-fit: cover;
    opacity: 0.8;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

/* Dark theme styles */
body.dark-theme {
    background-color: #121212;
    color: #f5f5f5;
}

.dark-theme .navbar {
    background: #1e1e1e !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-theme .state-container {
    background-color: #1e1e1e;
    border-color: #333;
}

.dark-theme .card {
    background-color: #2d2d2d;
    color: #f5f5f5;
}

.dark-theme .card.text-muted {
    color: #b0b0b0 !important;
}

.dark-theme .unit-badge {
    background-color: #333;
    color: #f5f5f5;
}

.dark-theme .search-container input {
    background-color: #333;
    border-color: #444;
    color: #f5f5f5;
}

.dark-theme .search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.4);
}

