/* 1D Wave Equation Simulation - CSS */

.wave-equation-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
}

.wave-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 6px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    color: #00ff88;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.control-group select {
    padding: 6px 12px;
    background: #1a1a1a;
    color: #00ff88;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.control-group select:hover {
    border-color: #00ff88;
}

.control-group select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

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

.control-group span {
    color: #00ff88;
    font-weight: bold;
    min-width: 30px;
    text-align: right;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #00ff88;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #00cc6a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #444;
    color: #00ff88;
}

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

.info-display {
    display: flex;
    gap: 20px;
    margin-left: auto;
    font-size: 13px;
    color: #aaa;
}

.info-display div {
    display: flex;
    gap: 5px;
}

.info-display span {
    color: #00ff88;
    font-weight: bold;
}

.wave-canvas-container {
    display: flex;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 10px;
}

#waveCanvas {
    display: block;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: crosshair;
}

#waveCanvas:hover {
    border-color: #00ff88;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .wave-equation-container {
        padding: 15px;
    }
    
    .wave-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .button-group {
        width: 100%;
    }
    
    .btn {
        flex: 1;
    }
    
    .info-display {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    #waveCanvas {
        width: 100%;
        height: auto;
    }
}

