/* Simulation Section */
.simulation-section {
    background: #0f0f11;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sim-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    align-items: start;
}

.sim-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* CPU Core */
.sim-cpu {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: box-shadow 0.3s;
}

.sim-cpu::before {
    content: 'CPU REGISTERS';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Queues */
.sim-queues {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.queue-box {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 100px;
}

/* Tasks */
.task-card {
    background: var(--surface-color);
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    color: var(--text-main);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.task-mini {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Log */
.sim-log {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.log-entry {
    margin-bottom: 0.5rem;
    animation: slideDown 0.3s ease-out;
    border-left: 2px solid var(--primary-color);
    padding-left: 0.5rem;
}

.log-time {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .sim-dashboard { grid-template-columns: 1fr; }
}
