/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2em;
}

header p {
    color: #666;
    font-size: 1.1em;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

label {
    margin-right: 10px;
    color: #666;
}

select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

/* Main content */
.visualization-container {
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 600px;
}

/* Visualization container */
#visualization {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Info panel */
#info-panel {
    width: 300px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#info-panel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#info-panel p {
    margin: 8px 0;
    color: #666;
}

.metric {
    margin-bottom: 15px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.metric-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
}

.quantum-fill {
    background: linear-gradient(to right, #a64dff, #6600cc);
}

.stability-fill {
    background: linear-gradient(to right, #4d94ff, #0055ff);
}

.entropy-fill {
    background: linear-gradient(to right, #ff66b3, #ff0066);
}

.cqc-fill {
    background: linear-gradient(to right, #6666ff, #3333ff);
}

.highlight {
    color: #2c3e50;
    font-weight: bold;
}

.small {
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
}

/* Error message */
.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .visualization-container {
        flex-direction: column;
    }
    
    #info-panel {
        width: 100%;
    }
}