:root { --primary: #2563eb; --bg-color: #f8fafc; --card-bg: #ffffff; --text-main: #1e293b; --text-muted: #64748b; --border: #e2e8f0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); margin: 0; padding: 0; }
header { background-color: #0f172a; color: white; padding: 1.5rem 2rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
header h1 { margin: 0; font-size: 1.5rem; font-weight: 600; }
header p { margin: 0.5rem 0 0; color: #94a3b8; font-size: 0.9rem; }

.dashboard-layout { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; padding: 2rem; }
.panel { background: var(--card-bg); border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid var(--border); margin-bottom: 2rem; }
h2 { font-size: 1.1rem; margin-top: 0; color: var(--text-main); border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-muted); }
input[type="number"], select { width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
select[multiple] { height: 140px; }

button { background-color: var(--primary); color: white; border: none; padding: 0.75rem 1rem; width: 100%; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; margin-top: 10px; }
button:hover { background-color: #1d4ed8; }
button.secondary { background-color: #475569; }
button.secondary:hover { background-color: #334155; }

.plot-box { width: 100%; min-height: 400px; background: #fff; border-radius: 8px; }

#loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; }
.spinner { border: 4px solid #e2e8f0; width: 50px; height: 50px; border-radius: 50%; border-left-color: var(--primary); animation: spin 1s linear infinite; margin-bottom: 1rem; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
