.region-switcher-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #0d1117;
}

.region-switcher {
    display: flex;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.region-btn {
    padding: 10px 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #c9d1d9;
    font-size: 14px;
}

.region-btn.active {
    background: #238636;
    color: white;
    box-shadow: 0 2px 4px rgba(35, 134, 54, 0.3);
}

.region-btn:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.dashboard-container-deltas-hour {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
    max-width: none;
}

.graph-container-deltas-hour {
    flex: 0 0 calc(33.333% - 0.5rem); 
    min-width: 250px;
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
}

.graph-container-deltas-hour canvas {
    width: 100% !important;
    height: 400px !important;
    max-height: 400px !important;
}

@media (max-width: 1200px) {
    .graph-container-deltas-hour {
        flex: 0 0 calc(33.333% - 0.5rem); 
    }

    .graph-container-deltas-hour canvas{
        height: 400px;
    }
}

@media (max-width: 900px) {
    .graph-container-deltas-hour {
        flex: 0 0 calc(50% - 0.5rem);
    }
    .graph-container-deltas-hour canvas{
        height: 400px;
    }
}

@media (max-width: 600px) {
    .graph-container-deltas-hour {
        flex: 0 0 100%;
    }
    .graph-container-deltas-hour canvas{
        height: 400px;
    }
}

.graph-container-deltas-hour.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #0d1117;
    border-radius: 0;
    padding: 20px;
    flex: none;
    min-width: unset;
}

.graph-container-deltas-hour.fullscreen canvas {
    height: calc(100vh - 40px) !important;
}

.graph-container-deltas-hour.fullscreen .fullscreen-btn {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 16px;
}
