.cpu-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.cpu-components {
    display: grid;
    grid-template-columns: repeat(4, 120px);
    grid-template-rows: repeat(3, 80px);
    gap: 1rem;
    justify-content: center;
}

.cpu-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 0.5rem;
}

.cpu-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,0.15);
}

.cpu-box.memory {
    grid-column: span 2;
    background: #e0f2fe;
}

.cpu-buses {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.bus {
    width: 300px;
    height: 4px;
    border-radius: 2px;
    background: #94a3b8;
    position: relative;
}

.bus.address-bus { background: #facc15; } /* yellow */
.bus.data-bus { background: #3b82f6; }    /* blue */
.bus.control-bus { background: #16a34a; } /* green */

.cpu-controls button {
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15,23,42,0.15);
    transition: all 0.25s ease;
}

.cpu-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.25);
    background: #1e293b;
}

.cpu-controls button:active {
    transform: scale(0.98);
}