/* Simulation Dashboard Custom Styles */

:root {
    --simulation-bg: #f8fafc;
    --ai-primary: #3b82f6;
    --ai-success: #10b981;
    --ai-warning: #f59e0b;
    --ai-danger: #ef4444;
}

/* AI Stats Header */
.simulation-stats {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gauge-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-brief {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Simulation Zone */
.simulation-container {
    background: #1e293b;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 2.5rem;
    color: white;
    position: relative;
}

/* Simulation Lab Engineering Console */
.simulation-lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 15px;
}

.lab-widget {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.25rem;
    height: 380px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.lab-widget h5 {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: #60a5fa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    font-weight: 800;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.status-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.status-val {
    font-size: 1rem;
    font-weight: 800;
    color: #60a5fa;
    font-family: 'JetBrains Mono', monospace;
}

.log-container {
    flex: 1;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    overflow-y: auto;
    line-height: 1.5;
    padding-right: 5px;
}

.log-entry {
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 2px;
}

.log-time {
    color: #64748b;
    margin-right: 8px;
}

.log-msg.warn {
    color: #f59e0b;
}

.log-msg.error {
    color: #ef4444;
}

.log-container::-webkit-scrollbar {
    width: 4px;
}

.log-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Slider & Timeline Styles */
input[type="range"].time-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #475569;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"].time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #60a5fa;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
    border: 2px solid white;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 12px;
}

/* Detail Tabs */
.detail-tabs {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: var(--ai-primary);
    box-shadow: inset 0 -3px 0 var(--ai-primary);
}

.tab-content {
    padding: 24px;
    display: none;
}

.tab-content.active {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 15px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}