:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
}

header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #a5b4fc, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.control-bar { text-align: center; margin-bottom: 40px; }

#clear-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

#clear-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
}

.plot-box {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.plot-box h3 {
    margin-top: 0;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

canvas {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    cursor: crosshair;
    max-width: 100%;
}

.plotly-wrapper { 
    width: 100%; 
    height: 440px; 
    border-radius: 16px; 
    overflow: hidden; 
}

/* Documentation Section Style */
.explanation-section {
    max-width: 1500px;
    margin: 50px auto 20px auto;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px;
}

.explanation-section h2 {
    font-size: 1.8rem;
    color: #a5b4fc;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.explanation-column h4 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.explanation-column p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
