/* Main Styles for SDE Visualization */

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#chart-container {
    width: 100vw;
    height: calc(100vh - 60px);
    margin-top: 60px;
}

/* Control Panel */
.control-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    color: white;
    overflow-x: auto;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.control-group label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group select,
.control-group input[type="number"],
.control-group input[type="range"] {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 12px;
    cursor: pointer;
}

.control-group input[type="range"] {
    width: 100px;
}

.control-group select:hover,
.control-group input:hover {
    background: rgba(255, 255, 255, 1);
}

.control-group button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-group button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.control-group button:active {
    transform: translateY(0);
}

/* Value Display */
.value-display {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: rgba(76, 217, 100, 0.8);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.toggle-switch.active::after {
    left: 22px;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    z-index: 999;
    display: none;
}

.loading-indicator.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .control-panel {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    #chart-container {
        margin-top: 80px;
        height: calc(100vh - 80px);
    }
}

@media (max-width: 768px) {
    .control-panel {
        font-size: 11px;
        gap: 10px;
    }
    
    .control-group {
        gap: 5px;
    }
    
    .control-group label {
        font-size: 10px;
    }
}
