.verification-success {
    background-color: #28a745; /* Verde */
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-size: 1.5em; /* Tamaño de fuente más grande */
    text-align: center;
}

.verification-success span {
    font-weight: bold;
}

.verification-danger {
    background-color: #e24343; /* Rojo pálido */
    color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    font-size: 1.5em; /* Tamaño de fuente más grande */
    text-align: center;
}

.verification-info {
    background-color: #fff3cd; /* Amarillo pastel */
    color: #856404;
    padding: 20px;
    border-radius: 5px;
    font-size: 1.5em;
    text-align: center;
}

.scan-success {
    background-color: #d4edda !important; /* Verde claro */
    color: #d4edda !important; /* Texto verde oscuro para contraste */
}

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .form-container {
    background-color: #1e1e1e;
    border-color: #333;
}

.dark-mode .form-control {
    background-color: #333;
    color: #ffffff;
    border-color: #555;
}

.dark-mode .form-control:focus {
    background-color: #444;
    color: #ffffff;
    border-color: #777;
}

.dark-mode .btn-custom-primary {
    background-color: #bb86fc;
    border-color: #bb86fc;
    color: #000;
}

.dark-mode .btn-custom-primary:hover {
    background-color: #a763fa;
    border-color: #a763fa;
}

.dark-mode .form-check-label {
    color: #ffffff;
}

.dark-mode h3 {
    background-color: #333 !important;
    color: #ffffff;
}

.dark-mode .verification-info {
    background-color: #333;
    color: #ffffff;
}

.dark-mode .scan-success {
    background-color: #203d24 !important; /* Verde oscuro para modo oscuro */
    color: #203d24 !important; /* Texto verde claro para contraste */
}

/* Estilos para el escáner de códigos de barras */
#interactive {
    border: 2px solid #007bff;
    border-radius: 8px;
    overflow: hidden;
}

#interactive video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#interactive canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.scanner-overlay {
    pointer-events: none;
    z-index: 10;
}

#cameraBtn {
    border-left: none;
}

#cameraBtn:hover {
    background-color: #007bff;
    color: white;
}

.dark-mode #interactive {
    border-color: #bb86fc;
}

.dark-mode #cameraBtn {
    background-color: #333;
    border-color: #555;
    color: #ffffff;
}

.dark-mode #cameraBtn:hover {
    background-color: #bb86fc;
    color: #000;
}

.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .modal-header {
    border-bottom-color: #333;
}

.dark-mode .modal-footer {
    border-top-color: #333;
}

.dark-mode .btn-close {
    filter: invert(1);
}

/* Camera Modal Styles */
.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: none;
}

.modal-header {
    border-bottom: 1px solid #444;
}

.modal-title {
    color: white;
}

.btn-close {
    filter: invert(1);
}

#interactive {
    width: 100%;
    height: 400px;
    border: 2px solid #007bff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: #000;
}

#interactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 2s ease-out infinite;
    z-index: 10;
}

#interactive::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 2s ease-out infinite 0.5s;
    z-index: 10;
}

#interactive video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#interactive canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Scanner overlay - removed fixed red line, keeping only dynamic detection lines */
.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    border: 2px solid rgba(0, 123, 255, 0.5);
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
}

.scanner-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 2s ease-out infinite;
}

.scanner-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 2s ease-out infinite 0.5s;
}

@keyframes radarPulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
        border-width: 2px;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Removed the fixed scanning line animation - only dynamic detection lines will show */

/* Scanning indicator styles */
#scanning-indicator {
    position: relative;
    z-index: 15;
    margin-top: 10px;
}

#scanning-indicator .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Camera button styles */
.camera-btn {
    background: #007bff;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.camera-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.camera-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.camera-btn:active {
    transform: translateY(0);
}

/* Flashlight button styles */
#flashlight-btn {
    transition: all 0.3s ease;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 6px 12px;
}

#flashlight-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#flashlight-btn.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

#flashlight-btn.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

/* Dark mode adjustments for camera */
.dark-mode .modal-content {
    background: rgba(0, 0, 0, 0.95);
}

.dark-mode .modal-header {
    border-bottom: 1px solid #555;
}

.dark-mode #interactive {
    border-color: #6c757d;
}

.dark-mode #scanning-indicator .badge {
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.dark-mode #flashlight-btn.btn-outline-light {
    border-color: #6c757d;
    color: #adb5bd;
}

.dark-mode #flashlight-btn.btn-outline-light:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}