.layout-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 30px;
    margin-top: 20px;
}

.sim-viewport {
    position: relative;
    height: 600px;
    background: #fff;
    border: 2px solid var(--light-green);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
}

#img-fundo { width: 95%; height: 95%; object-fit: contain; z-index: 1; }

.cache-table-container {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid var(--light-green);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.cache-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-family: 'Courier New', Courier, monospace;
}

.cache-table th, .cache-table td {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    border: 1px solid #eee;
}

.cache-table th {
    background: var(--primary-green);
    color: white;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.cache-table td { background: #fafafa; border-radius: 6px; }

.row-highlight { 
    background: #e8f5e9 !important; 
    border: 2px solid var(--primary-green) !important;
    transition: background 0.5s ease;
}

.floating-card {
    position: absolute;
    padding: 12px 20px;
    background: var(--warning-orange);
    color: white;
    font-weight: 900;
    border-radius: 10px;
    font-size: 0.95rem;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-align: center;
    white-space: nowrap;
    border: 2px solid rgba(255,255,255,0.2);
}

.nav.btn-step, .nav.btn-restart {
    border: none;
    border-radius: 50px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 40px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-step { background-color: var(--warning-orange) !important; color: white !important; }
.btn-restart { background-color: var(--light-green) !important; color: var(--primary-green) !important; }

.nav:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

@media (max-width: 1200px) {
    .layout-grid { grid-template-columns: 1fr; }
}