/* simulations.css - UPDATED */
.simulations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.welcome-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 2rem;
}

.simulation-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.dark .simulation-card {
    background: #2d3748;
    border-color: #4a5568;
    color: white;
}

.simulation-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.dark .simulation-card h3 {
    color: white;
}

.simulation-canvas {
    background: #1a1a2e;
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    padding: 1rem;
    min-height: 200px;
    align-items: center;
}

.simulation-canvas canvas {
    border-radius: 5px;
    border: 2px solid #4a5568;
    background: #0a0a1a;
}

.sim-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.sim-controls label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    min-width: 150px;
}

.sim-controls input[type="range"] {
    width: 100%;
}

.sim-controls select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #cbd5e0;
    background: white;
}

.dark .sim-controls select {
    background: #4a5568;
    border-color: #718096;
    color: white;
}

.sim-controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #4299e1;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.sim-controls button:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.sim-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 5px;
    font-family: monospace;
    border-left: 4px solid #4299e1;
}

.dark .sim-info {
    background: #4a5568;
}

/* pH Simulator Styles */
#phContainer {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    margin: 1rem 0;
    gap: 2rem;
}

#solutionBeaker {
    width: 100px;
    height: 150px;
    border: 3px solid #cbd5e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

#solutionLevel {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    transition: height 0.5s ease, background 0.5s ease;
    border-radius: 0 0 7px 7px;
}

#phScale {
    width: 30px;
    height: 150px;
    background: linear-gradient(to top, #ff0000, #ff9900, #ffff00, #00ff00, #0000ff, #8b00ff);
    border-radius: 5px;
    position: relative;
    border: 2px solid #cbd5e0;
}

#phIndicator {
    position: absolute;
    left: -10px;
    width: 50px;
    height: 3px;
    background: #000;
    transition: bottom 0.5s ease;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simulations-container {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sim-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sim-controls label {
        width: 100%;
    }
    
    #phContainer {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 2rem;
    }
    
    .simulation-canvas {
        padding: 0.5rem;
    }
    
    .simulation-canvas canvas {
        max-width: 100%;
        height: auto;
    }
}
