.step-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
    min-height: 400px;
}

.step-content.active {
    display: block;
}

.theory-card {
    background: var(--light-green);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(45, 106, 79, 0.1);
}

.simulator-box {
    background: var(--accent-yellow);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px dashed var(--primary-green);
}

#decimalInput {
    padding: 12px;
    border: 3px solid var(--primary-green);
    border-radius: 12px;
    font-size: 1.5rem;
    width: 140px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    color: var(--primary-green);
}

.binary-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.bit-row {
    display: flex;
    gap: 8px;
    font-family: 'Courier New', Courier, monospace;
}

.bit-box {
    width: 45px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bit-sign { 
    background: var(--warning-orange); 
    box-shadow: 0 5px 0 #b35d1a; 
}

.bit-mag { 
    background: var(--primary-green); 
    box-shadow: 0 5px 0 #1b4332; 
}

.bit-box:hover {
    transform: translateY(-5px);
}

.labels {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav.btn-step, .nav.btn-prev {
    border: none;
    border-radius: 50px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

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

@media (max-width: 600px) {
    .bit-box { width: 35px; height: 45px; font-size: 1.2rem; }
}