 /* Estilos CSS incorporados */
 body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.scanner-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

#scanner-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    border: 3px solid #3498db;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #000;
}

#canvas {
    display: none;
}

.scan-instructions {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
}

#result {
    margin-top: 5px;
    padding: 5px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e1e5e8;
}

.result-card {
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.employee-info {
    margin-bottom: 12px;
    font-size: 16px;
}

.employee-info strong {
    color: #2c3e50;
    display: inline-block;
    width: 100px;
}

.active {
    color: #27ae60;
    font-weight: bold;
    background-color: #e8f8f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.inactive {
    color: #e74c3c;
    font-weight: bold;
    background-color: #fdedec;
    padding: 4px 8px;
    border-radius: 4px;
}

.loading {
    color: #3498db;
    text-align: center;
    font-style: italic;
}

.error {
    color: #e74c3c;
    background-color: #fdedec;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.qr-url {
    font-size: 12px;
    color: #95a5a6;
    word-break: break-all;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.action-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#resetButton {
    background-color: #3498db;
    color: white;
}

#resetButton:hover {
    background-color: #2980b9;
}

#exitButton {
    background-color: #e74c3c;
    color: white;
}

#exitButton:hover {
    background-color: #c0392b;
}

.hidden {
    display: none;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

/* Estilos base para ambos botones */
.button-container button.action-button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Estilo específico para el botón de reset */
.button-container button#resetButton {
    background-color: #3498db !important;
    color: white !important;
}

/* Estilo específico para el botón de salida */
.button-container button#exitButton {
    background-color: #e74c3c !important;
    color: white !important;
}

/* Efectos hover */
.button-container button#resetButton:hover {
    background-color: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button-container button#exitButton:hover {
    background-color: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Efecto activo (al hacer clic) */
.button-container button:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

/* Clase para ocultar elementos */
/* .hidden {
    display: none !important;
} */

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    #scanner-container {
        height: 300px;
    }
    
    h1 {
        font-size: 24px;
    }
}