/* General Styling */
:root {
    --primary-color: #007bff;
    --background-color: #f4f7f6;
    --container-bg: #ffffff;
    --text-color: #333;
    --border-color: #ddd;
    --error-color: #d9534f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--container-bg);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout */
.main-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.controls {
    flex: 1;
    min-width: 300px;
}

.results {
    flex: 2;
    min-width: 400px;
}

/* Controls Panel */
.controls h2, .results h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #444;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#runButton {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

#runButton:hover {
    background-color: #0056b3;
}

.error-message {
    color: var(--error-color);
    font-weight: bold;
    margin-top: 15px;
    min-height: 20px;
    text-align: center;
}

/* Results Panel */
.metrics {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.metric-item {
    font-size: 1.1rem;
}

.metric-item span {
    font-weight: bold;
    color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 400px; /* Adjust height as needed */
}