:root {
  --primary-color: #4a6bff;
  --secondary-color: #6a11cb;
  --dark-blue: #003366;
  --light-blue: #0077cc;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --blur: blur(10px);
  --text-light: #ffffff;
  --text-dark: #333333;
}

/* Estilo general con fondo mejorado */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: url("../img/fondo4.jpg") center/cover no-repeat fixed;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-light);
  line-height: 1.6;
}
/* Creamos el pseudo-elemento que contendrá el fondo desenfocado */
body::before {
  content: "";
  position: fixed;
  /* Ocupa toda la pantalla, independientemente del scroll */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("../img/fondo.jpg") no-repeat center center;
  background-size: cover;
  filter: blur(8px);
  /* Nivel de desenfoque */
  -webkit-filter: blur(8px);
  /* Compatibilidad con Safari */
  z-index: -1;
  /* Lo posicionamos detrás de todo el contenido */
  transform: scale(1.1);
  /* Escala ligeramente para evitar bordes borrosos */
}

/* Capa adicional para mejorar contraste */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

h1,
h2,
h3 {
  text-align: center;
  margin: 20px 0;
  font-weight: 600;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 2.5rem;
  margin-top: 30px;
}
p {
  margin-left: 100px;
}
/* Tablas con efecto vidrio mejorado */
table {
  margin: 20px auto;
  width: 95%;
  max-width: 1200px;
  border-collapse: collapse;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

th,
td {
  padding: 14px 20px;
  text-align: left;
}

th {
  background: rgba(0, 51, 102, 0.7);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

td {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.15);
}

/* Estilo especial para la tabla de licencias */
#licenciasTable {
  width: 95vw;
  max-width: 100%;
}

#licenciasTable th {
  background: rgba(0, 51, 102, 0.8);
}

#licenciasTable tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.1);
}

#licenciasTable tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.05);
}

/* Formularios con efecto vidrio */
.form-licencias,
form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 15px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-light);
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 204, 255, 0.5);
}

/* Botones modernos */
.btn-guardar,
.btn-licencia,
.btn-movimientos,
.editar-link,
a[href*="carga.php"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-guardar,
.btn-licencia {
  background: linear-gradient(135deg, var(--light-blue), #005fa3);
  color: white;
}

.btn-guardar:hover,
.btn-licencia:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 95, 163, 0.3);
}

.editar-link,
a[href*="carga.php"] {
  background: rgba(247, 2, 226, 0.973);
  color: white;
  margin: 10px 0;
}

.editar-link:hover,
a[href*="carga.php"]:hover {
  background: rgb(131, 2, 120);
}
/* Contenedor del botón Editar centrado */
.boton-editar-container {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  margin: 20px 0; /* margen opcional arriba y abajo */
}

/* Estilo del botón Editar */
.boton-editar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--light-blue), #005fa3);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hover efecto */
.boton-editar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 95, 163, 0.3);
}

/* Paginación */
.pagination-controls {
  text-align: center;
  margin: 30px 0;
}

.pagination-controls button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0 5px;
}

.pagination-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Iconos */
.icono {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  filter: brightness(0) invert(1);
}
select {
  background-color: #17d2eb;
  /* fondo del campo cerrado */
  color: black;
}

select option {
  background-color: #f0f0f0;
  /* fondo de cada item en el desplegable (solo en Firefox) */
  color: black;
}
/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  table,
  #licenciasTable {
    width: 100%;
    font-size: 14px;
  }

  th,
  td {
    padding: 10px 12px;
  }
}
/* Añade este código a tu archivo css/mov.css */

.btn-exportar-pdf {
  display: inline-flex; /* Alinear icono y texto correctamente */
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background-color: #c82333; /* Un tono de rojo distintivo para PDF */
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out; /* Transición suave para todos los efectos */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  gap: 8px; /* Espacio entre el icono y el texto */
}

.btn-exportar-pdf:hover {
  background-color: #a81d2a; /* Rojo más oscuro en hover */
  transform: translateY(-3px); /* Efecto de elevación */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-exportar-pdf:active {
  transform: translateY(1px); /* Efecto de presión al hacer clic */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-exportar-pdf .fa-file-pdf {
  /* El espaciado ahora se maneja con 'gap' en el contenedor principal */
  font-size: 1.1em; /* Hacer el icono un poco más grande */
}

/* Contenedor principal de la página mov.php */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

.export-container {
  margin-bottom: 20px;
  text-align: left;
}

/* Panel de resumen anual en mov.php */
.vac-anual-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.vac-anual-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 12px 0;
}

.vac-anual-panel p,
.vac-anual-desc {
  margin: 0 0 8px 0;
  color: var(--text-light);
}

.vac-anual-desc {
  font-size: 0.95rem;
  opacity: 0.95;
}

.vac-anual-list {
  margin-top: 8px;
}

.vac-anual-actions {
  margin-top: 12px;
}
