/* ==========================================================================
   CHECKPOINT QR STYLES
   ========================================================================== */

/* QR Reader Container */
#qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#qr-reader video {
    border-radius: 10px;
}

/* Last Register Card */
.last-register-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.last-register-card h5 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.last-register-card .checkpoint-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.last-register-card .register-time {
    font-size: 14px;
    opacity: 0.9;
}

/* Scan Button */
.scan-btn {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
}

/* Current Checkpoint Card */
.current-checkpoint-card .checkpoint-icon {
    min-width: 50px;
    min-height: 50px;
}

/* ==========================================================================
   MOBILE RESPONSIVE (max-width: 576px)
   ========================================================================== */

@media (max-width: 576px) {

    /* Header: Layout vertical en móvil */
    .current-checkpoint-card>.d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Badge debajo del nombre con margin top */
    .current-checkpoint-card .badge {
        margin-top: 10px;
        align-self: flex-start;
        font-size: 12px !important;
    }

    /* Icono más pequeño en móvil */
    .current-checkpoint-card .checkpoint-icon {
        min-width: 40px;
        min-height: 40px;
        padding: 1rem !important;
    }

    .current-checkpoint-card .checkpoint-icon i {
        font-size: 20px !important;
    }

    /* Nombre del checkpoint más pequeño */
    .current-checkpoint-card h5 {
        font-size: 16px;
        word-break: break-word;
    }

    /* ID del QR más pequeño y con word-break */
    .current-checkpoint-card .text-muted {
        font-size: 15px;
        word-break: break-all;
    }

    /* Reducir padding de la tarjeta */
    .current-checkpoint-card {
        padding: 12px !important;
    }

    /* Horas entrada/salida más compactas */
    .current-checkpoint-card .tx-18 {
        font-size: 16px !important;
    }

    /* Scan button container más compacto */
    .scan-button-container {
        padding: 12px !important;
    }

    .scan-button-container h5 {
        font-size: 16px;
    }

    .scan-button-container .scan-icon i {
        font-size: 20px !important;
    }
}