/* Estilos base */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow-x: hidden;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos para la página de login */
.login-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: stretch;
  background-color: #000;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/login.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

.login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .login-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
}

/* Lado izquierdo - Información de la empresa */
.company-info {
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

@media (min-width: 768px) {
  .company-info {
    width: 50%;
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .company-info {
    padding: 3rem;
  }
}

.company-info h1,
.company-info h2 {
  font-weight: bold;
  text-decoration: underline;
  margin: 0;
  line-height: 1.1;
}

.company-info h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.company-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .company-info h1,
  .company-info h2 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .company-info h1,
  .company-info h2 {
    font-size: 3.5rem;
  }
}

.tagline {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .contact-info {
    gap: 1.5rem;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  background-color: #36A9E1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}

@media (min-width: 768px) {
  .contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .contact-label {
    font-size: 1.25rem;
  }
}

.contact-value {
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .contact-value {
    font-size: 1rem;
  }
}

/* Lado derecho - Formulario de login */
.login-form-container {
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .login-form-container {
    width: 50%;
    padding: 2.5rem;
  }
}

.login-form-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .login-form-card {
    padding: 2rem;
    max-width: 380px;
  }
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo {
  width: 100px;
  height: auto;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .logo {
    width: 120px;
  }
}

/* Estilos de formularios mejorados */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
input[type="month"],
select,
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #fff;
}

input:focus,
select:focus,
.form-group input:focus {
  outline: none;
  border-color: #f9b000;
  box-shadow: 0 0 0 3px rgba(249, 176, 0, 0.15);
}

/* Botón de login mejorado */
.login-button {
  width: 100%;
  padding: 0.875rem;
  background-color: #36A9E1;
  color: black;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.login-button:hover {
  background-color: #ffffff00;
}

/* Mensajes de error y éxito mejorados */
.error,
.mensaje {
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.error {
  color: #991b1b;
  background-color: #fee2e2;
  border: 2px solid #fecaca;
}

.mensaje.success {
  color: #065f46;
  background-color: #d1fae5;
  border: 2px solid #a7f3d0;
}

.mensaje.error {
  color: #991b1b;
  background-color: #fee2e2;
  border: 2px solid #fecaca;
}

/* Contenedor principal general */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Estilos de la página de login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #ebf4ff 0%, #e6f0ff 100%);
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
}

.card-header {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: white;
}

.card-header h1 {
  font-size: 1.75rem;
  margin: 0;
  font-weight: bold;
}

.card-content {
  padding: 2rem;
}

/* Estilos de botones mejorados */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  min-width: 120px;
}

button:hover,
.button:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

button:active,
.button:active {
  transform: translateY(0);
}

/* Botones deshabilitados mejorados */
.button-disabled,
button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  background-color: #94a3b8;
  pointer-events: none;
}

/* Calendario mejorado */
.calendario {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.calendario th,
.calendario td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.calendario th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #1e293b;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.calendario td {
  position: relative;
  height: 80px;
  vertical-align: top;
}

.calendario .tardanza {
  background-color: #f7d987;
  border-left: 4px solid #e1ad1d;
}

.calendario .puntual {
  background-color: #ecfdf5;
  border-left: 4px solid #059669;
}

.calendario .falta {
  background-color: #fef2f2;
  border-left: 4px solid #dc2626;
}

/* Leyenda del calendario mejorada */
.leyenda {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.leyenda span {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}

.leyenda span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
}

.leyenda .puntual::before {
  background-color: #059669;
}

.leyenda .tardanza::before {
  background-color: #e1cd1d;
}

.leyenda .falta::before {
  background-color: #dc2626;
}

/* Modal mejorado */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Media Queries mejorados */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 1rem;
    margin: 1rem auto;
  }

  .login-card {
    margin: 0 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  button,
  .button {
    width: 100%;
    margin-right: 0;
  }

  .leyenda {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .card-content {
    padding: 1.5rem;
  }

  .calendario th,
  .calendario td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .calendario td {
    height: 60px;
  }

  .form-group label {
    font-size: 0.875rem;
  }

  input[type="text"],
  input[type="password"],
  input[type="month"],
  select,
  .form-group input {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }
}

/* Utilidades de accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Estado de foco mejorado para accesibilidad */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}


/* Mensaje de advertencia mejorado */
.warning-text {
  color: #b91c1c;
  font-weight: 600;
  margin: 1rem 0;
  padding: 0.75rem;
  background-color: #fef2f2;
  border-radius: 6px;
  border-left: 4px solid #dc2626;
}
/* Estilos adicionales de admin.php */
.hidden {
  display: none !important;
}

/* Actualizar estilos para la tabla de reporte diario */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

#tablaReporteDiario {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: white;
  table-layout: fixed;
}

#tablaReporteDiario th,
#tablaReporteDiario td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#tablaReporteDiario th:first-child,
#tablaReporteDiario td:first-child {
  width: 25%;
  text-align: left;
  white-space: normal;
}

#tablaReporteDiario th {
  background-color: #4d7bb696;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}

#tablaReporteDiario tr:nth-child(even) {
  background-color: #f9f9f9;
}

#tablaReporteDiario tr:hover {
  background-color: #f1f1f1;
}

/* Estilos para el modal de detalles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

#modalRegistros {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  max-width: 600px;
  width: 90%;
}

#modalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.cerrar-modal:hover {
  background-color: #f3f4f6;
}

.registro-hora {
  margin: 10px 0;
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.registro-hora:last-child {
  border-bottom: none;
}

/* Estilos para el estado de asistencia */
/* Estilos para los estados de asistencia en la tabla */
.puntual {
  background-color: #05966973 !important;
  color: white !important;
  font-weight: bold;
}

.tardanza {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  font-weight: bold;
}

.falta {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  font-weight: bold;
}

.pendiente {
  background-color: #e2e3e5 !important;
  color: #383d41 !important;
  font-weight: bold;
}

.alerta {
  background-color: #ffeeba !important;
  color: #856404 !important;
  font-weight: bold;
}

/* Nuevos estilos para la tabla de reporte diario - con !important para asegurar que se apliquen */
.entrada-puntual {
  background-color: #05966973 !important;
  color: white !important;
  font-weight: bold !important;
}

.entrada-tardanza {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  font-weight: bold !important;
}

.falta-celda {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  font-weight: bold !important;
  text-align: center !important;
}

.falta-celda::after {
  content: "F" !important;
}

.fin-break-ok,
.fin-almuerzo-ok {
  background-color: #36A9E1 !important;
  color: white !important;
  font-weight: bold !important;
}

.fin-break-ok::after,
.fin-almuerzo-ok::after {
  content: " ✓" !important;
}

.fin-break-exceso,
.fin-almuerzo-exceso {
  background-color: #ffc107 !important;
  color: #856404 !important;
  font-weight: bold !important;
}

.fin-break-exceso::after,
.fin-almuerzo-exceso::after {
  content: " ⚠" !important;
}

/* Asegurarse que estos estilos no sean sobrescritos */
#tablaReporteDiario td.entrada-puntual,
#tablaReporteDiario td.entrada-tardanza,
#tablaReporteDiario td.falta-celda,
#tablaReporteDiario td.fin-break-ok,
#tablaReporteDiario td.fin-almuerzo-ok,
#tablaReporteDiario td.fin-break-exceso,
#tablaReporteDiario td.fin-almuerzo-exceso {
  border: 1px solid #ddd !important;
}

/* Botón para ver detalles */
.ver-detalles {
  background-color: #36A9E1;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ver-detalles:hover {
  background-color: #26a69a;
}

/* Estilos para tablas de referencia */
.tables-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Responsive para tablas */
@media (max-width: 1200px) {
  #tablaReporteDiario th,
  #tablaReporteDiario td {
    padding: 6px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  #tablaReporteDiario th,
  #tablaReporteDiario td {
    padding: 4px;
    font-size: 0.7rem;
  }

  .tables-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #tablaReporteDiario {
    font-size: 14px;
  }

  #tablaReporteDiario th,
  #tablaReporteDiario td {
    padding: 6px;
  }

  #modalRegistros {
    width: 95%;
  }
}

@media (max-width: 480px) {
  #tablaReporteDiario {
    font-size: 12px;
  }

  #tablaReporteDiario th,
  #tablaReporteDiario td {
    padding: 4px;
  }

  #modalRegistros {
    width: 95%;
  }
}

/* Añadir al final del archivo CSS existente */
.registro-item {
  position: relative;
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.registro-item.alerta-tiempo {
  background-color: #f8d7da;
  border-left: 4px solid #dc2626;
  color: #721c24;
}

.registro-tipo {
  font-weight: 600;
  margin-right: 10px;
}

.registro-hora {
  color: #040404;
}

.alerta-tiempo .registro-hora {
  color: #721c24;
}

.icono-alerta {
  margin-left: 10px;
  font-size: 1.2em;
}

.registros-lista {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

/* Estilo para el contenedor de registros */
section[aria-labelledby="registros-hoy"] {
  background: white;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Animación para las alertas */
@keyframes parpadeo {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.alerta-tiempo {
  animation: parpadeo 2s infinite;
}

/* Estilos para tablas */
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 4px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

input[type="text"] {
  border: none;
  background-color: transparent;
  width: 100%;
  text-align: center;
  color: inherit;
}

input[type="text"]:focus {
  outline: none;
}

.on-time {
  background-color: #05966973 !important;
  font-weight: bold;
  padding: 5px;
  border-radius: 5px;
  color: #fff;
}

.pendiente {
  background-color: #fef3c7 !important;
  color: #92400e;
  font-weight: bold;
  padding: 5px;
  border-radius: 5px;
}

.alerta {
  background-color: #f8d7da !important;
  color: #721c24;
  font-weight: bold;
  padding: 5px;
  border-radius: 5px;
}

.check-icon {
  color: green;
  font-size: 14px;
  margin-left: 5px;
}

.text-red-600 {
  color: #dc2626;
  font-weight: bold;
}

/* Estilos específicos para la página de administrador */
.admin-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #555;
  overflow-y: auto;
  padding-bottom: 100px; /* Espacio para el footer */
}

.admin-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/ciudad_fondo.jpeg");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.3;
  z-index: 0;
  filter: grayscale(100%);
}

.admin-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 3rem;
}

.admin-title {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-align: center;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-grow: 1;
}

.admin-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
}

.admin-form {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  background-color: white;
}

.month-input-container {
  position: relative;
  width: 100%;
}

.calendar-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.stats-button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #36A9E1;
  color: white;
  margin-top: 1rem;
}

.admin-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
}

.footer-button {
  background-color: #36A9E1;
  color: white;
  border-radius: 30px;
  padding: 12px 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.footer-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.results-container {
  width: 100%;
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para la página de indicadores */
.indicadores-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #555;
  overflow-y: auto;
  padding-bottom: 100px; /* Espacio para el footer */
}

.indicadores-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("ciudad_fondo.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
  filter: grayscale(100%);
}

.indicadores-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  padding: 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.indicadores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.indicadores-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-grow: 1;
}

.indicadores-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
}

.indicadores-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.indicadores-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
}

.ver-mes-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #36A9E1;
  color: white;
}

.indicadores-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  overflow: hidden;
}

.indicadores-table th {
  background-color: #4d7bb6ab;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.indicadores-table td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.indicadores-table tr:nth-child(even) {
  background-color: rgba(240, 240, 240, 0.9);
}

.indicadores-table tr:hover {
  background-color: rgba(220, 220, 220, 0.9);
}

.indicadores-table input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.puntos-ventas,
.puntos-total {
  font-weight: bold;
  font-size: 1.1rem;
}

.ranking {
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 4px;
  color: white;
}

.diamante {
  background-color: #4db6acb0;
}

.oro {
  background-color: #ffd70094;
  color: #333;
}

.bronce {
  background-color: #c88a1178;
}

.actualizar-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #36A9E1;
  color: white;
  margin-top: 1rem;
  align-self: center;
}

.mensaje-container {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

/* Estilos para el panel de asistencia (panel.php) */
.attendance-panel {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background-color: #333;
  color: white;
}

.attendance-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/ciudad_fondo.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
  filter: grayscale(100%);
}

.attendance-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

.panel-container {
  width: 100%;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #36A9E1;
  padding-bottom: 1rem;
}

.company-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.panel-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
}

.welcome-section {
  margin-bottom: 2rem;
}

.welcome-message {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.notice-box {
  background-color: #333;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #36A9E1;
}

.notice-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #36A9E1;
}

.notice-text {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.warning-text {
  color: #dc2626;
  font-weight: bold;
  font-style: italic;
}

.entry-time {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.attendance-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.attendance-button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #36A9E1;
  color: white;
  transition: all 0.2s ease;
  min-width: 150px;
}

.attendance-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.attendance-button:disabled {
  background-color: #777;
  cursor: not-allowed;
  transform: none;
}

.records-section {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.records-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #36A9E1;
  border-bottom: 1px solid #36A9E1;
  padding-bottom: 0.5rem;
}

.records-display {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  min-height: 100px;
}

.record-item {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.record-item:last-child {
  border-bottom: none;
}

.no-records {
  text-align: center;
  padding: 2rem 0;
}

.no-records-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.no-records-subtitle {
  color: #aaa;
  font-size: 0.9rem;
}

/* Estilos para los botones del footer según la imagen */
.admin-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
}

.footer-button {
  background-color:#36A9E1;
  color: white;
  border-radius: 30px;
  padding: 12px 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.footer-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .admin-footer {
    flex-wrap: wrap;
  }

  .footer-button {
    min-width: 150px;
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}
/* Estilos específicos para la página de asistencia */
.month-selector {
  margin: 1.5rem 0;
  text-align: center;
}

.month-selector label {
  font-weight: bold;
  margin-right: 1rem;
  color: white;
}

.month-selector input[type="month"] {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.stats-container {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.stats-container h3 {
  color: #36A9E1;
  margin-bottom: 1rem;
  border-bottom: 1px solid #36A9E1;
  padding-bottom: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.stat-title {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.calendar-container {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.calendar-container h3 {
  color: #36A9E1;
  margin-bottom: 1rem;
  border-bottom: 1px solid #36A9E1;
  padding-bottom: 0.5rem;
}

.calendar-help {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ddd;
  text-align: center;
}

/* Estilos para el modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
}
/* Estilos para el calendario */
.calendario-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow: hidden;
}

.calendario-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

/* Contenedor de estadísticas y leyenda */
.estadisticas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 10px;
}

.estadisticas-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.estadisticas-lista li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

/* Leyenda */
.leyenda {
  display: flex;
  gap: 15px;
  margin: 1rem 0;
}

.leyenda span {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  position: relative;
  padding-left: 20px;
}

.leyenda span::before {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.leyenda .puntual::before {
  background-color: #d4edda;
  border-left: 4px solid #059669;
}

.leyenda .tardanza::before {
  background-color: #fff3cd;
  border-left: 4px solid #e1ad1d;
}

.leyenda .falta::before {
  background-color: #fef2f2;
  border-left: 4px solid #dc2626;
}

/* Contenedor del calendario */
.calendario-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* Tabla del calendario */
.calendario {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

.calendario th {
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
}

.calendario td {
  height: 80px;
  vertical-align: top;
  padding: 8px;
  border: 1px solid #e5e7eb;
  width: 14.28%;
  position: relative;
}

.calendario td:empty {
  background-color: #f9fafb;
}

/* Estilos para los días */
.dia-numero {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
  cursor: pointer;
}

.hora-ingreso {
  font-size: 0.85rem;
  color: #555;
  display: flex;
  align-items: center;
}

.icono-lapiz {
  margin-left: 5px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Estilos para los estados */
.dia-calendario.puntual {
  background-color: #d4edda;
  border-left: 4px solid #059669;
}

.dia-calendario.tardanza {
  background-color: #fff3cd;
  border-left: 4px solid #e1ad1d;
}

.dia-calendario.falta {
  background-color: #fef2f2;
  border-left: 4px solid #dc2626;
}

/* Botón de exportar */
.export-button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.export-button {
  background-color: #4db6ac;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.export-button:hover {
  background-color: #3da59a;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Modal para mostrar registros del día */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  max-width: 600px;
  width: 90%;
}

.modal-contenido {
  position: relative;
  padding: 20px;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.cerrar-modal:hover {
  background-color: #f3f4f6;
}

.registro-hora {
  padding: 10px;
  margin: 5px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.registro-hora:last-child {
  border-bottom: none;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.error {
  text-align: center;
  padding: 20px;
  color: #dc2626;
  background-color: #fee2e2;
  border-radius: 4px;
}

/* Formulario de edición */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 1.5rem;
}

.btn-guardar {
  background-color: #4db6ac;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
}

.btn-cancelar {
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .estadisticas-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .estadisticas-lista {
    margin-bottom: 1rem;
  }
  
  .calendario th,
  .calendario td {
    padding: 5px;
    font-size: 0.85rem;
  }
  
  .calendario td {
    height: 70px;
  }
  
  .dia-numero {
    font-size: 0.9rem;
  }
  
  .hora-ingreso {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .calendario-wrapper {
    padding: 10px;
  }
  
  .calendario th,
  .calendario td {
    padding: 3px;
    font-size: 0.75rem;
  }
  
  .calendario td {
    height: 60px;
  }
  
  .dia-numero {
    font-size: 0.8rem;
  }
  
  .hora-ingreso {
    font-size: 0.7rem;
  }
  
  .export-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
/* Modal overlay styles - ensure it covers the entire screen and dims the background */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

/* Modal styles - ensure it appears above the overlay */
#modalRegistros {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  max-width: 400px; /* Reduced from 600px for smaller content */
  width: 90%;
}

.modal-contenido {
  position: relative;
  padding: 15px;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.cerrar-modal:hover {
  background-color: #f3f4f6;
}

#modalTitulo {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  padding-right: 30px; /* Make room for close button */
}

.registro-hora {
  padding: 8px;
  margin: 5px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.registro-hora:last-child {
  border-bottom: none;
}

.loading {
  text-align: center;
  padding: 15px;
  color: #666;
}

.error {
  color: #d9534f;
  padding: 10px;
  background-color: #f2dede;
  border-radius: 4px;
  margin-top: 10px;
}

/* Animation for modal */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

#modalRegistros {
  animation: slideIn 0.3s ease;
}

.modal-overlay {
  animation: fadeIn 0.3s ease;
}
