* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select, input[type="range"], input[type="number"] {
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    font-size: 1em;
}

select:focus, input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.range-value {
    text-align: center;
    color: #667eea;
    font-weight: bold;
    margin-top: 5px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3);
}

.plots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.plot-wrapper {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plot-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.results {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.results h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.metric-label {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    color: #2d3748;
    font-size: 2em;
    font-weight: bold;
}

.info-box {
    background: #edf2f7;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box h4 {
    color: #2d3748;
    margin-bottom: 10px;
}

.info-box p {
    color: #4a5568;
    line-height: 1.6;
}

.equation-display {
    background: #2d3748;
    color: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    text-align: center;
    margin: 15px 0;
    font-size: 1.1em;
}

.tab-container {
    margin: 30px 0;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    margin-bottom: -2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .plots-container {
        grid-template-columns: 1fr;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
}