@font-face {
    font-family: 'sofiapro';
    src: url('fonts/sofiapro-400.woff2') format('opentype');
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.login-container label {
    font-size: 18px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.login-container input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
}

.login-container input:focus {
    border-color: #007bff;
    outline: none;
}

.login-container button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-sizing: border-box;
}

.login-container button:hover {
    background-color: #0056b3;
}

.login-container button:active {
    background-color: #004494;
}

.login-container #error-message {
    color: red;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

/* Estilos generales */

body, html {
  font-family: 'sofiapro';
  margin: 0;
  padding: 0;
  height: 100%;
}


.container {
      display: flex;
      flex-direction: column;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
      height: 100%;

}

header {
    display: flex;
  text-align: center;
  background-color: #007bff;
  color: #fff;
align-items: center;
  justify-content: space-between; /* Espaciado entre el título y el botón */
  padding: 10px 15px;

}

.filter-button .fa-sliders-h, .fa-ticket-alt {
  font-size: 24px; /* Tamaño del icono */
  color: #333; /* Color del icono */

}

.filter-icon {
  width: 24px; /* Ajusta el tamaño del icono según sea necesario */
  height: 24px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Botón de filtro alineado a la derecha */
}

header h1 {
  font-size: 1.4rem;
  margin: 0;
  flex-grow: 1; /* Asegura que el título ocupe el espacio restante */
  text-align: left; /* Alineación del título a la izquierda */
}

main {
        text-align: center;
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: white;
}

/* Contenedor cuadrado para el video */
.video-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

/* Video de la cámara centrado y ampliado para ocupar todo el contenedor */
.qr-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta y amplía la imagen para que ocupe todo el cuadrado */
}

p#qr-result {
    font-size: 22px;
    color: #007bff;
    margin-top: 15px;
    padding: 10px;
    background-color: #e9f5ff;
    border-radius: 8px;
}

#error-message {
    color: red;
    font-size: 18px;
    margin-top: 10px;
}



/* Alerta personalizada */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    max-width: 400px;
    width: 80%;
    display: none;
}

.custom-alert.success {
    border: 3px solid #28a745;
    color: #28a745;
}

.custom-alert.error {
    border: 3px solid #dc3545;
    color: #dc3545;
}

.alert-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.alert-button:hover {
    background-color: #0056b3;
}

/* Clases de utilidad */
.hidden {
    display: none;
}


/* Alerta personalizada */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    max-width: 400px;
    width: 80%;
    display: none;
}


.custom-alert.success {
    border: 3px solid #28a745;
    color: #28a745;
}

.custom-alert.error {
    border: 3px solid #dc3545;
    color: #dc3545;
}

.alert-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.alert-button:hover {
    background-color: #0056b3;
}


button, input {
    font-size: 18px;
    padding: 15px;
}

/* Estilo para el botón de logout */
.logout-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.logout-button i {
    margin-right: 8px;
}

.logout-button:hover {
    background-color: #c82333;
}

.logout-button:active {
    background-color: #bd2130;
    transform: scale(0.98);
}
