body {
    background-color: #f5f6fa;
    font-size: 0.9rem;
}

.param-panel {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.param-group {
    margin-bottom: 12px;
}

.param-group legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.param-group label {
    font-size: 0.8rem;
    margin-bottom: 2px;
    color: #6c757d;
}

.param-group .form-control,
.param-group .form-select {
    font-size: 0.85rem;
    padding: 4px 8px;
}

.preset-btn {
    font-size: 0.7rem;
    padding: 1px 6px;
    margin: 1px;
}

.metrics-panel {
    background: #e8f4f8;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.metrics-panel h6 {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #d1e7ed;
    font-size: 0.8rem;
}

.metric-item .metric-label {
    color: #495057;
    font-weight: 500;
}

.metric-item .metric-value {
    color: #0d6efd;
    font-weight: 600;
}

.classification-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.badge-flat { background: #d4edda; color: #155724; }
.badge-selective { background: #f8d7da; color: #721c24; }
.badge-slow { background: #d4edda; color: #155724; }
.badge-fast { background: #f8d7da; color: #721c24; }

.plot-container {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.btn-simulate {
    width: 100%;
    margin-top: 8px;
}

.btn-save-scenario {
    width: 100%;
    margin-top: 4px;
}

.tab-content {
    padding-top: 10px;
}

.nav-tabs .nav-link {
    font-weight: 600;
}

.scenario-table {
    font-size: 0.8rem;
}

.scenario-table th {
    font-size: 0.75rem;
    white-space: nowrap;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.k-factor-group {
    background: #fff3cd;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #ffc107;
}
