body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #222;
    color: white;
    margin: 20px;
    padding-top: 100px; /* Space for header */
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 20px;
    border-bottom: 2px solid #444;
    z-index: 1000;
}

.app-header h1 {
    margin: 0;
    font-size: 28px;
    color: white;
}

.logo-container {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.inverted-logo {
    width: 200px;
    height: auto;
    filter: invert(100%) brightness(110%) contrast(120%);
    transition: transform 0.3s;
}

.inverted-logo:hover {
    transform: translateY(-50%) scale(1.05);
}

.control-label {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 10px;
    width: 100%;
    text-align: left;
    padding-left: 5%;
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.button-group button {
    padding: 20px 30px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    background-color: #444;
}

.button-group button.active {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #007bff;
}

#region-buttons button {
    background-color: #555;
}

#region-buttons button[data-region="Non-Hindi South"] { background-color: #ff6b6b; }
#region-buttons button[data-region="Non-Hindi,Non-South"] { background-color: #4ecdc4; }
#region-buttons button[data-region="Hindi_Belt"] { background-color: #45b7d1; }

.scrollable {
    max-height: 200px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #333;
    border-radius: 10px;
    padding: 10px;
}

#state-container button {
    background-color: #444;
    flex: 1 1 calc(33% - 10px);
    margin: 5px;
}

#reset-button {
    background-color: #ff9f1c;
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 18px;
    border-radius: 10px;
    margin-top: 20px;
}

#chart-container {
    width: 90%;
    margin: 0 auto;
    background-color: #333;
    border-radius: 15px;
    padding: 20px;
}

svg {
    width: 100%;
    height: 600px;
}

.axis text {
    font-size: 18px;
    fill: white;
}

.tooltip {
    position: absolute;
    display: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 18px;
    pointer-events: none;
    transition: opacity 0.3s;
}

#chart circle {
    stroke: white;
    stroke-width: 2px;
    transition: stroke-width 0.2s;
}

#chart circle:hover {
    stroke-width: 4px;
}

@media (max-width: 768px) {
    .inverted-logo {
        width: 150px;
    }
    
    .app-header h1 {
        font-size: 24px;
    }
}