/* EVM Simulator Styles for Steps Page */

.evm-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 40px;
    perspective: 1000px;
}

/* Ballot Unit Styling */
.ballot-unit {
    width: 320px;
    background: #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5), inset -2px -2px 5px rgba(255,255,255,0.5);
    border: 4px solid #c0c0c0;
}

.bu-header {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.candidate-row {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.candidate-row:hover {
    background: #f0f8ff;
}

.c-num { width: 30px; font-weight: bold; color: #555; }
.c-name { flex: 1; font-weight: 600; color: #333; font-size: 0.9rem; }
.c-symbol { width: 40px; text-align: center; font-size: 1.2rem; }

.c-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    border-left: 1px solid #eee;
}

.led {
    width: 12px;
    height: 12px;
    background: #444;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
}

.led.active {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.vote-btn {
    width: 40px;
    height: 25px;
    background: #0066cc;
    border: 2px solid #004488;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.1s;
}

.candidate-row:active .vote-btn {
    transform: scale(0.9);
    background: #004488;
}

/* VVPAT Unit Styling */
.vvpat-unit {
    width: 220px;
    background: #d0d0d0;
    border-radius: 10px;
    padding: 20px;
    border: 4px solid #b0b0b0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vvpat-window {
    width: 140px;
    height: 180px;
    background: #111;
    border: 5px solid #888;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.vvpat-slip {
    position: absolute;
    top: -160px;
    left: 10px;
    width: 110px;
    height: 140px;
    background: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    transition: top 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vvpat-slip.printing { top: 10px; }
.vvpat-slip.dropping { top: 200px; }

.slip-num { font-weight: bold; border-bottom: 1px solid #eee; width: 100%; text-align: center; margin-bottom: 5px; color: #333; }
.slip-symbol { font-size: 2.5rem; margin: 10px 0; }
.slip-name { font-weight: 700; color: #333; font-size: 0.8rem; }

.vvpat-label {
    margin-top: 15px;
    font-weight: 900;
    color: #555;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.beep-indicator {
    margin-top: 20px;
    font-weight: 900;
    color: #ff0000;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}

.beep-indicator.active {
    opacity: 1;
    transform: scale(1.2);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.disabled-unit {
    pointer-events: none;
    opacity: 0.8;
}

/* Mobile Responsiveness for EVM */
@media (max-width: 600px) {
    .evm-wrapper {
        gap: 20px;
        transform: scale(0.9);
        transform-origin: top center;
    }

    .ballot-unit {
        width: 300px;
    }

    .c-name {
        font-size: 0.8rem;
    }

    .vvpat-unit {
        width: 200px;
    }

    .vvpat-window {
        width: 120px;
        height: 160px;
    }

    .vvpat-slip {
        width: 100px;
        height: 130px;
    }
}
