/* Estilos generales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3, h4 {
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Estilos para el body repetidos */
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7ff;
  color: var(--color-gray-800);
  line-height: 1.6;
}

/* Otros estilos generales */
button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 5px;
}

button:hover {
  background-color: #2980b9;
}

input, select, textarea {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 10px;
}



/* Estilos de Formularios y Campos */


.form-group {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
}


.form-group label {
  position: absolute;
  left: 45px; /* Alineado a la derecha del icono */
  top: 50%;
  transform: translateY(-50%); /* Centrado vertical */
  color: #95a5a6;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 5px;
  z-index: 2;
}

/* Efecto de elevaciÃ³n cuando el campo estÃ¡ enfocado o tiene contenido */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -12px;
  left: 15px;
  font-size: 13px;
  font-weight: 600;
  color: #3498db;
  background: white;
  padding: 0 8px;
  border-radius: 10px;
  transform: translateY(0); 
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Estilo para los Ã­conos - bien posicionados */
.form-group i,
.form-group svg,
.form-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
  font-size: 18px;
  z-index: 2;
  width: 20px;
  text-align: center;
  pointer-events: none;
}


.form-group input {
  width: 100%;
  height: 56px; 
  padding: 0 15px 0 45px;
  border: 3px solid #bdc3c7; 
  border-radius: 10px; 
  background-color: #ffffff;
  font-size: 16px; 
  color: #34495e;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 768px) {
  .form-group input {
    height: 50px;
    font-size: 16px;
    border-width: 2px;
  }
}
/* Estilo cuando el input estÃ¡ enfocado */
.form-group input:focus {
  outline: none;
  border-color: #3498db;
  border-width: 3px; /* Mantiene el grosor del borde */
  box-shadow: 0 3px 12px rgba(52, 152, 219, 0.25);
}


.form-group input::placeholder {
  color: transparent;
}
/* Estilo unificado para ambos inputs */
.form-group input#cedula,
.form-group input#password {
  width: 100%;
  height: 56px;
  padding: 0 15px 0 45px;
  border: 3px solid #bdc3c7;
  border-radius: 10px;
  background-color: #ffffff;
  font-size: 16px;
  color: #34495e;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/* Estilo para los Ã­conos */
.form-group i,
.form-group svg,
.form-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
  font-size: 18px;
  z-index: 2;
  width: 25px; 
  text-align: center;
  pointer-events: none;
}
/*BotÃ³n de login */
#btn-login, 
button[type="submit"] {
  background: linear-gradient(to right, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  height: 56px;
  transition: all 0.3s;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

#btn-login:hover,
button[type="submit"]:hover {
  background: linear-gradient(to right, #2980b9, #2c3e50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Estilos de Login */
#login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #ecf0f1;
}

.login-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  width: 400px;
}

/* Login form - versiÃ³n 2 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f7fa;
}

.login-card {
  width: 100%;
  max-width: 450px; /* Mantener ancho original */
  padding: 12px !important; /* ULTRA PEQUEÑO: de 40px a 12px */
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}


.login-title {
  text-align: center;
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#btn-login {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

#btn-login:hover {
  background-color: #2980b9;
}


.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
  padding-bottom: 50px;
}

.login-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
}

.login-icon {
  text-align: center;
  margin-bottom: 20px;
}

.login-icon i {
  font-size: 60px;
  color: #3498db;
  background: #f0f8ff;
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

#btn-login {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
  margin-top: 15px;
}

#btn-login:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(52, 152, 219, 0.3);
}

#btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.4);
}

/* Admin login */
.admin-login {
  max-width: 420px;
  margin: 80px auto;
  padding: 35px;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.admin-login:hover {
  box-shadow: var(--shadow-large);
}

.admin-login h2 {
  color: var(--color-primary);
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.admin-login h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}

#btn-admin-login {
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 100%;
  margin-bottom: 15px;
}

#btn-admin-login:hover {
  background-color: var(--color-primary-dark);
}

#btn-volver-inicio {
  background-color: var(--color-gray-300);
  color: var(--color-gray-700);
  width: 100%;
}

#btn-volver-inicio:hover {
  background-color: var(--color-gray-400);
}








/* Estilos de Header y NavegaciÃ³n */
header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.teacher-info h2 {
  color: white;
  margin-bottom: 5px;
}

#btn-logout {
  background-color: #e74c3c;
}

#btn-logout:hover {
  background-color: #c0392b;
}

/* Admin header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background-color: var(--color-white);
  padding: 25px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
}

.admin-header h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
}

.admin-header h1 i {
  margin-right: 12px;
  background-color: rgba(67, 97, 238, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
}

#btn-admin-logout {
  background-color: var(--color-gray-200);
  color: var(--color-gray-700);
  font-size: 14px;
}

#btn-admin-logout:hover {
  background-color: var(--color-gray-300);
  color: var(--color-gray-900);
}



/* Estilos de Tabs y PestaÃ±as */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #ddd;
  border-radius: 4px 4px 0 0;
  padding: 10px 20px;
  margin-right: 5px;
  cursor: pointer;
}

.tab-btn.active {
  //background-color: #fff;
  color: #3498db;
  border-bottom: 2px solid #3498db;
}

.tab-content {
  background-color: white;
  border-radius: 0 0 5px 5px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}




/* Student tabs */
.student-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.student-tab {
  padding: 10px 15px;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
}

.student-tab.active {
  border-bottom: 3px solid #3498db;
  color: #3498db;
  font-weight: bold;
}

/* Tabs adicionales - estilos especÃ­ficos */
.tabs {
  display: flex;
  align-items: center;
}

.tab-actions {
  margin-left: 200px;
}

#btn-data, #btn-reports {
  margin-left: 20px;
}

/* BotÃ³n de tab especÃ­fico */
.tab-btn[data-tab="grades"] {
  color: #27ae60;
  background-color: transparent;
  transition: all 0.3s ease;
}

.tab-btn[data-tab="grades"].active {
  color: white;
  background-color: #27ae60;
  border-radius: 5px;
  padding: 5px 10px;
}



/* Estilos de Tablas */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

/* Aumentar tamaÃ±o de letra en tablas de actividades */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  font-size: 15px !important; 
}

table th, table td {
  border: 1px solid #ddd;
  padding: 11px !important; /* Aumentado de 8px */
  text-align: left;
  vertical-align: middle;
}

table th {
  background-color: #f2f2f2;
  font-weight: bold;
  font-size: 14px !important; /* Aumentado de 12px */
}

table td {
  font-size: 14px !important; /* Aumentado de 12px */
}

/* Para asegurar que los nÃºmeros sean mÃ¡s legibles */
td:nth-child(4), /* CalificaciÃ³n */
td:nth-child(5), /* RecuperaciÃ³n */
td:nth-child(6) { /* CalificaciÃ³n Final */
  font-weight: 600;
  font-size: 16px !important; /* NÃºmeros ligeramente mÃ¡s grandes */
  text-align: center;
}

/* Mejorar espaciado para mayor legibilidad */
tr {
  height: 42px !important; /* Filas mÃ¡s altas */
}

/* Estilos para la tabla de actividades */
.actividad-header {
  background-color: #3498db !important;
  color: white !important;
  font-weight: bold;
}

.actividad-cell {
  background-color: #e8f4fc;
  color: #3498db;
  font-weight: bold;
  text-align: center;
}

input[type="text"], input[type="number"] {
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 95%;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

td {
  border: 1px solid #ddd;
  padding: 4px;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Estilos para fijar columnas y encabezados */
.table-container {
  overflow: auto;
  max-height: 70vh;
  position: relative;
}

/* Tabla de calificaciones - mÃºltiples versiones y ajustes */

#grades-table th, 
#grades-table td {
  min-width: 100px;
  width: 100px;
  max-width: 100px;
  padding: 4px;
  font-size: 14px;
  word-wrap: break-word;
  white-space: normal;
  vertical-align: top;
  line-height: 1.2;
  overflow: hidden;
}

@media (max-width: 768px) {
  #grades-table th, 
  #grades-table td {
    min-width: 80px;
    width: 80px;
    max-width: 80px;
    padding: 3px;
    font-size: 13px;
  }
}

#grades-table td input[data-campo="tema"],
#grades-table td input[data-campo="observacion"],
#grades-table td input[data-campo="calificacion"],
#grades-table td input[data-campo="recuperacion"] {
  width: 100%;
  padding: 3px 5px;
  font-size: 12px;
  height: 26px;
}

#grades-table td input[data-campo="tema"] {
  max-width: 110px;
}

#grades-table td input[data-campo="observacion"] {
  max-width: 110px;
}

#grades-table td input[data-campo="calificacion"],
#grades-table td input[data-campo="recuperacion"] {
  width: 60px;
  text-align: center;
}

#grades-table td[id^="final-"] {
  text-align: center;
  font-weight: bold;
}

.actividad-header {
  font-size: 15px;
  text-align: center;
  padding: 6px 2px !important;
}

.actividad-cell {
  font-size: 15px;
  text-align: center;
  padding: 4px 2px !important;
}

:root {
  --col-width-1: 80px;
  --col-width-2: 150px;
}

#grades-table th:nth-child(1),
#grades-table td:nth-child(1) {
  width: var(--col-width-1);
  min-width: var(--col-width-1);
  max-width: var(--col-width-1);
}

#grades-table th:nth-child(2),
#grades-table td:nth-child(2) {
  width: var(--col-width-2);
  min-width: var(--col-width-2);
  max-width: var(--col-width-2);
}

#grades-table th:nth-child(3),
#grades-table td:nth-child(3) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

#grades-table th:nth-child(2),
#grades-table td:nth-child(2) {
  left: var(--col-width-1);
}

#grades-table th:nth-child(3),
#grades-table td:nth-child(3) {
  left: calc(var(--col-width-1) + var(--col-width-2));
}

.low-grade {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  font-weight: bold;
}

/* Estilos optimizados para la tabla de actividades - versiÃ³n 2 */
#grades-table {
  position: relative; 
  border-collapse: separate; 
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

#grades-table th, 
#grades-table td {
  min-width: 120px;
  width: 120px;
  max-width: 120px;
  padding: 6px;
  font-size: 15px;
  word-wrap: break-word;
  white-space: normal;
  vertical-align: top;
  line-height: 1.3;
  overflow: hidden;
}

#grades-table td input[data-campo="tema"],
#grades-table td input[data-campo="observacion"],
#grades-table td input[data-campo="calificacion"],
#grades-table td input[data-campo="recuperacion"] {
  width: 100%;
  padding: 3px 5px;
  font-size: 15px;
  height: 28px;
}

#grades-table td input[data-campo="tema"] {
  max-width: 110px;
}

#grades-table td input[data-campo="observacion"] {
  max-width: 110px;
}

#grades-table td input[data-campo="calificacion"],
#grades-table td input[data-campo="recuperacion"] {
  width: 65px;
  text-align: center;
}

#grades-table td[id^="final-"] {
  text-align: center;
  font-weight: bold;
  font-size: 15px;
}

.actividad-header {
  font-size: 15px;
  text-align: center;
  padding: 6px 2px !important;
  background-color: #3498db !important;
  color: white !important;
  font-weight: bold;
}

.actividad-cell {
  font-size: 15px;
  text-align: center;
  padding: 4px 2px !important;
  background-color: #e8f4fc;
  color: #3498db;
  font-weight: bold;
}

:root {
  --col-width-1: 105px;
  --col-width-2: 170px;
  --col-width-3: 90px;
}

#grades-table th:nth-child(1),
#grades-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 5;
  width: var(--col-width-1);
  min-width: var(--col-width-1);
  max-width: var(--col-width-1);
  background-color: #f5f8fa;
}

#grades-table th:nth-child(2),
#grades-table td:nth-child(2) {
  position: sticky;
  left: var(--col-width-1);
  z-index: 5;
  width: var(--col-width-2);
  min-width: var(--col-width-2);
  max-width: var(--col-width-2);
  background-color: #f5f8fa;
}

#grades-table th:nth-child(3),
#grades-table td:nth-child(3) {
  position: sticky;
  left: calc(var(--col-width-1) + var(--col-width-2));
  z-index: 5;
  width: var(--col-width-3);
  min-width: var(--col-width-3);
  max-width: var(--col-width-3);
  background-color: #f5f8fa;
}

#grades-table thead th {
  position: sticky;
  top: 0;
  background-color: #2c3e50;
  color: white;
  z-index: 10;
}

#grades-table th:nth-child(1),
#grades-table th:nth-child(2),
#grades-table th:nth-child(3) {
  z-index: 15;
  background-color: #2c3e50;
}

#grades-table th:nth-child(3),
#grades-table td:nth-child(3) {
  border-right: 2px solid #ddd;
}

/* Tabla trimestral */
#trimester-table {
  position: relative;
  border-collapse: separate;
  border-spacing: 0;
}

#trimester-table th:nth-child(1),
#trimester-table th:nth-child(2),
#trimester-table td:nth-child(1),
#trimester-table td:nth-child(2) {
  position: sticky;
  left: 0;
  background-color: #f5f5f5;
  z-index: 5;
}

#trimester-table th:nth-child(1),
#trimester-table td:nth-child(1) {
  left: 0;
}

#trimester-table th:nth-child(2),
#trimester-table td:nth-child(2) {
  left: 120px;
}

#trimester-table td:nth-child(1),
#trimester-table td:nth-child(2) {
  background-color: white;
  border-right: 1px solid #ddd;
}

#trimester-table th:nth-child(1),
#trimester-table th:nth-child(2) {
  background-color: #f2f2f2;
  z-index: 15;
  border-right: 1px solid #ddd;
}

#trimester-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f2f2f2;
}

#trimester-table th {
  white-space: nowrap;
  padding: 8px 12px;
  min-width: 120px;
}

#trimester-table th:nth-child(3) {
  min-width: 140px;
}

#trimester-table td {
  text-align: center;
  min-width: 120px;
}

#trimester-table input[type="number"] {
  width: 60px;
  text-align: center;
}

/* Tabla admin */
.tabla-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  padding: 25px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.admin-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* Ajustes adicionales de columnas */
.actividad-header, 
.actividad-cell {
  min-width: 80px !important;
  width: 80px !important;
  max-width: 80px !important;
}

#grades-table td input[data-campo="tema"] {
  max-width: 150px;
}

#grades-table th:nth-child(5),
#grades-table td:nth-child(5) {
  min-width: 150px !important;
  width: 150px !important;
  max-width: 150px !important;
}



/* Estilos de Botones y Controles */
button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 5px;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  button {
    padding: 8px 12px;
  }
}

/* Botones especÃ­ficos */
.visibility-btn {
  background-color: #e67e22;
  margin-left: 10px;
}

.visibility-btn.active {
  background-color: #27ae60;
}

/* Actions bar */
/* === ESTILOS NUEVOS PARA ACCIONES === */
.actions {
 
  margin-bottom: 20px;
}
.actions-navbar {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 50px;
  padding: 6px;
  display: inline-flex;  /* ? VOLVER a inline-flex */
  gap: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#btn-add-activity, #btn-remove-activity, #btn-save {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);  /* ? AGREGAR BORDE */
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

#btn-add-activity:hover, #btn-remove-activity:hover, #btn-save:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);  /* ? BORDE MÁS VISIBLE EN HOVER */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);  /* ? BRILLO */
}
#btn-add-activity.active {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.2)),
    linear-gradient(45deg, #00ff88, #00cc70, #009955, #00ff88);
  background-origin: border-box;
  animation: greenGlow 2s linear infinite;
}

#btn-remove-activity.active {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: 
    linear-gradient(rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.2)),
    linear-gradient(45deg, #ff6b6b, #ff5252, #e74c3c, #ff6b6b);
  background-origin: border-box;
  animation: redGlow 2.5s linear infinite;
}

#btn-save.active {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.2)),
    linear-gradient(45deg, #00d4ff, #0099cc, #0066aa, #00d4ff);
  background-origin: border-box;
  animation: blueGlow 3s linear infinite;
}

@keyframes greenGlow {
  0% { background-image: linear-gradient(rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.2)), linear-gradient(0deg, #00ff88, #00cc70, #009955, #00ff88); }
  25% { background-image: linear-gradient(rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.2)), linear-gradient(90deg, #00cc70, #009955, #00ff88, #00cc70); }
  50% { background-image: linear-gradient(rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.2)), linear-gradient(180deg, #009955, #00ff88, #00cc70, #009955); }
  75% { background-image: linear-gradient(rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.2)), linear-gradient(270deg, #00ff88, #00cc70, #009955, #00ff88); }
  100% { background-image: linear-gradient(rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.2)), linear-gradient(0deg, #00ff88, #00cc70, #009955, #00ff88); }
}

@keyframes redGlow {
  0% { background-image: linear-gradient(rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.2)), linear-gradient(0deg, #ff6b6b, #ff5252, #e74c3c, #ff6b6b); }
  33% { background-image: linear-gradient(rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.2)), linear-gradient(120deg, #ff5252, #e74c3c, #ff6b6b, #ff5252); }
  66% { background-image: linear-gradient(rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.2)), linear-gradient(240deg, #e74c3c, #ff6b6b, #ff5252, #e74c3c); }
  100% { background-image: linear-gradient(rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.2)), linear-gradient(0deg, #ff6b6b, #ff5252, #e74c3c, #ff6b6b); }
}

@keyframes blueGlow {
  0% { background-image: linear-gradient(rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.2)), linear-gradient(0deg, #00d4ff, #0099cc, #0066aa, #00d4ff); }
  25% { background-image: linear-gradient(rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.2)), linear-gradient(90deg, #0099cc, #0066aa, #00d4ff, #0099cc); }
  50% { background-image: linear-gradient(rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.2)), linear-gradient(180deg, #0066aa, #00d4ff, #0099cc, #0066aa); }
  75% { background-image: linear-gradient(rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.2)), linear-gradient(270deg, #00d4ff, #0099cc, #0066aa, #00d4ff); }
  100% { background-image: linear-gradient(rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.2)), linear-gradient(0deg, #00d4ff, #0099cc, #0066aa, #00d4ff); }
}
/* Botones de datos y reportes */
#btn-data, #btn-reports {
  display: flex;
  align-items: center;
  background-color: #2c3e50;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-left: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#btn-data:hover, #btn-reports:hover {
  background-color: #3498db;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#btn-data i, #btn-reports i {
  margin-right: 8px;
  font-size: 16px;
}

/* Botones adicionales */
.btn-editar {
  background-color: var(--color-info);
  color: var(--color-white);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-editar:hover {
  background-color: #3f82d1;
}

.btn-eliminar {
  background-color: var(--color-danger);
  color: var(--color-white);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
  margin-left: 8px;
}

.btn-eliminar:hover {
  background-color: #dd1f73;
}

.btn-guardar {
  background-color: var(--color-success);
  color: var(--color-white);
  padding: 10px 18px;
  font-size: 14px;
}

.btn-guardar:hover {
  background-color: #41b0d5;
}

.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

/* Botones modales */
#btn-cancel-profesor {
  background-color: var(--color-gray-300);
  color: var(--color-gray-700);
}

#btn-cancel-profesor:hover {
  background-color: var(--color-gray-400);
}

#btn-save-profesor {
  background-color: var(--color-success);
  color: white;
}

#btn-save-profesor:hover {
  background-color: #41b0d5;
}



/* Estilos de Dropdown y MenÃºs */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
}

@media (max-width: 768px) {
  .dropdown-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  }
  
  .dropdown-content a, 
  .dropdown-content div {
    padding: 15px;
    font-size: 16px;
  }
}

.dropdown-content a:hover,
.dropdown-content div:hover {
  background-color: #f1f1f1;
}

.dropdown-content {
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a,
.dropdown-content div {
  padding: 10px 15px;
  margin-left: 0 !important; /* Elimina cualquier margen izquierdo */
  display: block;
  width: 100%;
  text-align: left;
  position: relative; /* Asegura posicionamiento correcto */
  white-space: nowrap; 
}

/* Estilos modernos para menÃºs desplegables */
.dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  color: #333;
  font-weight: 600;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  gap: 8px;
}

.dropdown-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-btn i {
  transition: transform 0.3s ease;
}

.dropdown-btn.active i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 10px;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  border: 1px solid #e0e0e0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  gap: 12px;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
  color: #3498db;
}

.dropdown-item i {
  color: #6c757d;
  transition: color 0.3s ease;
}

.dropdown-item:hover i {
  color: #3498db;
}

.dropdown-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 8px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dropdown-content {
    min-width: 200px;
  }
  
  .dropdown-item {
    padding: 10px 12px;
  }
}



/* Estilos de Modales */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  animation: modalFadeIn 0.3s;
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background-color: #3498db;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: white;
}

#btn-close-modal {
  font-size: 24px;
  cursor: pointer;
  color: white;
}

#btn-close-modal:hover {
  color: #f1f1f1;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee;
}

/* Modal de administraciÃ³n */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--shadow-large);
  animation: scaleIn 0.3s;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--color-primary);
  font-size: 22px;
  position: relative;
}

.modal-content h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}

.modal-actions {
  text-align: right;
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}



/* Estilos de Curso y Secciones */
.course-section {
  background-color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.course-section label {
  margin-right: 10px;
  font-weight: bold;
}

.course-section select {
  flex: 1;
  margin-right: 10px;
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.section-header h2 {
  color: var(--color-gray-800);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.section-description {
  margin-bottom: 25px;
  color: var(--color-gray-600);
  font-size: 15px;
}

.trimestre-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  padding: 25px;
  margin-bottom: 25px;
  transition: var(--transition);
  border-top: 4px solid var(--color-primary);
}

.trimestre-card:hover {
  box-shadow: var(--shadow-medium);
}

.trimestre-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-gray-200);
}

.trimestre-header h2 {
  margin: 0;
  color: var(--color-gray-800);
  font-size: 18px;
  font-weight: 600;
}

.estado-trimestre {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}

.estado-activo {
  background-color: rgba(76, 201, 240, 0.15);
  color: var(--color-success);
}

.estado-inactivo {
  background-color: rgba(247, 37, 133, 0.15);
  color: var(--color-danger);
}

.fecha-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.fecha-group label {
  width: 130px;
  font-weight: 500;
  color: var(--color-gray-700);
  font-size: 14px;
}

.fecha-group input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: var(--transition);
}

.fecha-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--color-gray-200);
}

.switch-container {
  display: flex;
  align-items: center;
}

.switch-label {
  margin-left: 12px;
  font-size: 14px;
  color: var(--color-gray-700);
}



/* Estilos de Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-gray-300);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}


/* Estilos de Notificaciones */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  box-shadow: var(--shadow-medium);
  display: none;
  z-index: 1050;
  animation: slideIn 0.3s;
}



/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Estilos para Vista de Estudiantes */
.student-container {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.student-header {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

.student-header h1 {
  margin: 0;
  font-size: 24px;
  color: white;
}

.student-form {
  padding: 20px;
}

.student-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.grade-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background-color: #f1f8ff;
  border-radius: 5px;
  border-left: 4px solid #3498db;
}

.final-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-grade-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: 3px solid #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.low-grade {
  color: #e74c3c;
  border-color: #e74c3c;
}

.annual-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.trimester-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.trimester-card .title {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.trimester-card .grade {
  font-size: 24px;
  font-weight: bold;
}

.big-final-grade {
  border: 5px solid;
  width: 120px;
  height: 120px;
  font-size: 32px;
  margin: 20px auto;
}

.error-message {
  color: #e74c3c;
  background-color: #fadbd8; 
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
}



/* Estilos para Loader/Spinner */
.loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.spinner-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.loader {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(52, 152, 219, 0.2);
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}



/* Variables CSS */
:root {
  --color-primary: #4361ee;
  --color-primary-dark: #3a56d4;
  --color-secondary: #3f37c9;
  --color-success: #4cc9f0;
  --color-danger: #f72585;
  --color-warning: #f8961e;
  --color-info: #4895ef;
  --color-light: #f8f9fa;
  --color-dark: #212529;
  --color-muted: #6c757d;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-100: #f8f9fa;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --border-radius: 10px;
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-large: 0 8px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}


/* Media Queries y Responsividad */
@media (max-width: 768px) {
  .student-container {
    margin: 20px 10px;
    width: auto;
  }

  .grade-summary {
    flex-direction: column;
  }

  .final-grade {
    margin-top: 15px;
  }
  
  .admin-container {
    padding: 0 15px;
  }
  
  .admin-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .fecha-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .fecha-group label {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .switch-container {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn-guardar {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .student-container {
    padding: 5px;
  }

  .student-header h1 {
    font-size: 20px;
  }

  .student-tab {
    padding: 8px;
    font-size: 12px;
  }

  table {
    font-size: 11px;
  }

  table th, table td {
    padding: 4px;
  }

  .final-grade-circle {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
}

/* Mejoras generales de responsividad */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
}

input, button, select {
  touch-action: manipulation;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  min-width: 300px;
}



/* Componentes Adicionales e Importaciones */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.dropdown button i, .dropdown-content a i {
  margin-right: 5px;
}

.dropdown button i.fa-caret-down {
  margin-left: 5px;
  margin-right: 0;
}











body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f4;
}

#sistema-calificaciones {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}
/* Sabanas */
.sabanas-selector {
  display: flex;
  gap: 10px;
}

.btn-sabana {
  background-color: #f1f1f1;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-sabana.active {
  background-color: #3498db;
  color: white;
}

.acciones-sabana {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.acciones-sabana button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

.acciones-sabana button:hover {
  background-color: #2980b9;
}

.tabla-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

#tabla-calificaciones {
  width: 100%;
  border-collapse: collapse;
}

#tabla-calificaciones th, 
#tabla-calificaciones td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#tabla-calificaciones thead {
  background-color: #f2f2f2;
}

#tabla-calificaciones input {
  width: 100%;
  border: none;
  background: transparent;
}

.lista-estudiantes {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
}

#tabla-estudiantes {
  width: 100%;
  border-collapse: collapse;
}

#tabla-estudiantes th, 
#tabla-estudiantes td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.btn-agregar-estudiante {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.btn-agregar-estudiante:hover {
  background-color: #27ae60;
}











/* Estilos especÃ­ficos para el modal de curso */
.modal-form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

.modal-form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.modal-form-group input::placeholder {
  color: #aaa;
  font-style: italic;
}




/* Sabana encabezados */
/* Estilos para fijar TODOS los encabezados de la sÃ¡bana */
#tabla-sabana {
  position: relative;
  border-collapse: collapse;
  width: 100%;
}

/* Fijar toda la fila de encabezados */
#tabla-sabana thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

#tabla-sabana thead th {
  position: sticky;
  top: 0;
  background-color: #f5f5f5;
  z-index: 10;
  box-shadow: 0 2px 4px -2px rgba(0,0,0,0.2);
  white-space: nowrap;
  text-align: center;
  font-weight: bold;
}

/* Mejorar visualizaciÃ³n */
#tabla-sabana thead th {
  background-color: #edf2f7;
  color: #2c3e50;
  padding: 10px;
  border: 1px solid #ccc;
}






/* Estilos para el indicador de mÃ¡s contenido */
.indicador-mas-contenido {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  color: #3498db;
  font-size: 10px;
  animation: pulseArrow 1.5s infinite;
  pointer-events: none; /* Para que el clic llegue a la celda */
}

/* AnimaciÃ³n para la flecha */
@keyframes pulseArrow {
  0% { opacity: 0.5; transform: translateY(-50%) translateX(-2px); }
  50% { opacity: 1; transform: translateY(-50%) translateX(0); }
  100% { opacity: 0.5; transform: translateY(-50%) translateX(-2px); }
}

/* Estilos para el popup de contenido completo */
.popup-contenido-completo {
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 200px;
  max-width: 300px;
}

.popup-header {
  background-color: #f8f9fa;
  padding: 8px 12px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #333;
}

.popup-body {
  padding: 10px 12px;
  font-size: 12px;
}

.detalle-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.detalle-label {
  font-weight: bold;
  color: #555;
}

.detalle-valor {
  font-weight: bold;
}

.detalle-grafico {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
}

.barra-progreso {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 4px;
}

/* Estilos para celdas con indicador */
td.con-indicador {
  cursor: pointer;
  position: relative;
}

td.con-indicador:hover {
  background-color: #f5f9ff !important;
}








/* CSS para el efecto de explosiÃ³n del botÃ³n */

/* Primero, aÃ±adimos la animaciÃ³n de explosiÃ³n */
@keyframes explosion {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  }
  20% {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(52, 152, 219, 0.5);
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
    box-shadow: 0 5px 35px rgba(52, 152, 219, 0.7);
  }
  80% {
    transform: scale(0.5);
    opacity: 0.2;
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.9);
  }
  100% {
    transform: scale(0);
    opacity: 0;
    box-shadow: 0 0 50px rgba(52, 152, 219, 1);
  }
}

/* AnimaciÃ³n para las partÃ­culas que salen del botÃ³n */
@keyframes particula {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Clase que se aÃ±adirÃ¡ al botÃ³n cuando se active la explosiÃ³n */
#btn-login.exploding {
  animation: explosion 0.7s forwards;
}

/* Estilos para las partÃ­culas que saldrÃ¡n del botÃ³n */
.particula {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(to right, #3498db, #2980b9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particula 0.7s forwards;
}

/* Efecto de shake para cuando las credenciales son incorrectas */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s;
}

/* Estilo para que el botÃ³n aparezca nuevamente despuÃ©s de la explosiÃ³n */
@keyframes appear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#btn-login.appearing {
  animation: appear 0.5s forwards;
}



















/* ==========================================
   FONDO CON VIDEOS EDUCATIVOS
   Para Sistema Académico
   ========================================== */

/* OPCIÓN 1: Video de fondo real */
#login-page:not([style*="display: none"]) {
  position: relative;
  overflow: hidden;
  background: #1e3c72; /* Color de respaldo */
}

/* Container para el video */
#login-page:not([style*="display: none"])::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  background: 
    /* Simular pantalla de video con puntos en movimiento */
    radial-gradient(circle at 20% 20%, #3b82f6 2px, transparent 3px),
    radial-gradient(circle at 80% 30%, #10b981 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, #f59e0b 2px, transparent 3px),
    radial-gradient(circle at 70% 80%, #ef4444 2px, transparent 3px),
    radial-gradient(circle at 10% 60%, #8b5cf6 2px, transparent 3px),
    radial-gradient(circle at 90% 10%, #06b6d4 2px, transparent 3px),
    /* Fondo base del "video" */
    linear-gradient(45deg, #1e3c72, #2a5298);
  background-size: 
    100px 100px,
    120px 120px, 
    80px 80px,
    150px 150px,
    90px 90px,
    110px 110px,
    100% 100%;
  animation: videoFlow 20s linear infinite;
  z-index: 1;
}

/* Overlay con efecto de video */
#login-page:not([style*="display: none"])::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Líneas horizontales como video entrelazado */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    /* Efecto de "ruido" de video */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.01) 1px,
      rgba(255, 255, 255, 0.01) 3px
    );
  animation: scanlines 0.1s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* ANIMACIÓN DE FLUJO DE VIDEO */
@keyframes videoFlow {
  0% {
    background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%;
  }
  25% {
    background-position: 25% 25%, 35% 15%, 45% 45%, 55% 5%, 65% 65%, 75% 25%;
  }
  50% {
    background-position: 50% 50%, 60% 20%, 70% 70%, 80% 10%, 90% 90%, 100% 50%;
  }
  75% {
    background-position: 75% 25%, 85% 35%, 95% 45%, 105% 55%, 115% 15%, 125% 75%;
  }
  100% {
    background-position: 100% 0%, 110% 10%, 120% 20%, 130% 30%, 140% 40%, 150% 50%;
  }
}

/* EFECTO DE LÍNEAS DE ESCANEO */
@keyframes scanlines {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(4px);
  }
}

/* Asegurar que el formulario esté por encima */
#login-page:not([style*="display: none"]) .login-container {
  position: relative;
  z-index: 10;
}

#login-page:not([style*="display: none"]) .login-card {
  position: relative;
  z-index: 10;
}












/* ==========================================
   FONDO NEÓN CON BORDES ESTÁTICOS
   Sin rotación, solo líneas fijas en los bordes
   ========================================== */

/* FONDO PRINCIPAL oscuro futurista */
#login-page:not([style*="display: none"]) {
  background: 
    /* Gradiente oscuro de base */
    radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%),
    /* Puntos de luz dispersos */
    radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 2%),
    radial-gradient(circle at 80% 30%, rgba(255, 20, 147, 0.1) 0%, transparent 2%),
    radial-gradient(circle at 40% 70%, rgba(0, 255, 255, 0.08) 0%, transparent 1.5%),
    radial-gradient(circle at 70% 80%, rgba(255, 20, 147, 0.08) 0%, transparent 1.5%),
    radial-gradient(circle at 10% 60%, rgba(138, 43, 226, 0.1) 0%, transparent 2%),
    radial-gradient(circle at 90% 10%, rgba(0, 255, 255, 0.12) 0%, transparent 2%);
  background-size: 
    100% 100%,
    300px 300px,
    250px 250px,
    400px 400px,
    350px 350px,
    200px 200px,
    280px 280px;
  animation: cyberpunkFlow 25s ease infinite;
  position: relative;
  overflow: hidden;
}

/* Líneas de neón flotantes en el fondo */
#login-page:not([style*="display: none"])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Líneas horizontales cyan */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(0, 255, 255, 0.03) 81px,
      rgba(0, 255, 255, 0.03) 82px,
      transparent 83px,
      transparent 160px
    ),
    /* Líneas verticales rosa */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(255, 20, 147, 0.03) 121px,
      rgba(255, 20, 147, 0.03) 122px,
      transparent 123px,
      transparent 240px
    );
  animation: neonLines 30s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* Efecto de "escaneo" futurista */
#login-page:not([style*="display: none"])::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 255, 255, 0.8) 30%, 
    rgba(255, 20, 147, 0.8) 70%, 
    transparent 100%
  );
  animation: scannerBeam 4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* TARJETA CON BORDES NEÓN ESTÁTICOS */
#login-page:not([style*="display: none"]) .login-card {
  /* Fondo oscuro translúcido */
  background: rgba(26, 26, 46, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 15px !important;
  
  /* BORDES NEÓN ESTÁTICOS */
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
  box-shadow: 
    /* Sombra principal */
    0 8px 32px rgba(0, 0, 0, 0.6),
    /* Borde interior cyan */
    inset 0 0 0 2px rgba(0, 255, 255, 0.4),
    /* Brillo exterior cyan */
    0 0 0 1px rgba(0, 255, 255, 0.6),
    0 0 20px rgba(0, 255, 255, 0.4),
    /* Brillo rosa en las esquinas */
    0 0 40px rgba(255, 20, 147, 0.3) !important;
  
  position: relative;
  z-index: 10;
  animation: cardGlow 3s ease-in-out infinite alternate;
}

/* LÍNEAS ESTÁTICAS EN LAS ESQUINAS Y BORDES */
#login-page:not([style*="display: none"]) .login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Línea superior cyan */
    linear-gradient(90deg, transparent 0%, #00ffff 20%, #00ffff 80%, transparent 100%),
    /* Línea inferior rosa */
    linear-gradient(90deg, transparent 0%, #ff1493 20%, #ff1493 80%, transparent 100%),
    /* Línea izquierda cyan */
    linear-gradient(0deg, transparent 0%, #00ffff 20%, #00ffff 80%, transparent 100%),
    /* Línea derecha rosa */
    linear-gradient(0deg, transparent 0%, #ff1493 20%, #ff1493 80%, transparent 100%);
  background-size: 
    100% 2px,
    100% 2px,
    2px 100%,
    2px 100%;
  background-position: 
    0 0,
    0 100%,
    0 0,
    100% 0;
  background-repeat: no-repeat;
  border-radius: 15px;
  z-index: -1;
  opacity: 0.8;
  animation: borderPulse 2s ease-in-out infinite alternate;
}

/* ESQUINAS BRILLANTES ESTÁTICAS */
#login-page:not([style*="display: none"]) .login-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: 
    /* Esquina superior izquierda */
    radial-gradient(circle at 0% 0%, #00ffff 0%, transparent 15%),
    /* Esquina superior derecha */
    radial-gradient(circle at 100% 0%, #ff1493 0%, transparent 15%),
    /* Esquina inferior izquierda */
    radial-gradient(circle at 0% 100%, #ff1493 0%, transparent 15%),
    /* Esquina inferior derecha */
    radial-gradient(circle at 100% 100%, #00ffff 0%, transparent 15%);
  border-radius: 16px;
  z-index: -2;
  opacity: 0.6;
  animation: cornerGlow 3s ease-in-out infinite alternate;
}

/* Asegurar que el formulario esté por encima */
#login-page:not([style*="display: none"]) .login-container {
  position: relative;
  z-index: 10;
}

/* PARTÍCULAS NEÓN FLOTANTES */
#login-page:not([style*="display: none"]) .login-container::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00ffff;
  border-radius: 50%;
  left: 10%;
  bottom: 0;
  animation: neonParticle1 12s infinite linear;
  z-index: 5;
  box-shadow: 
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 30px #00ffff;
}

#login-page:not([style*="display: none"]) .login-container::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ff1493;
  border-radius: 50%;
  right: 15%;
  bottom: 0;
  animation: neonParticle2 15s infinite linear;
  z-index: 5;
  box-shadow: 
    0 0 8px #ff1493,
    0 0 16px #ff1493,
    0 0 24px #ff1493;
  animation-delay: 6s;
}

/* ANIMACIONES SUAVES */

/* Flujo del fondo */
@keyframes cyberpunkFlow {
  0%, 100% {
    background-position: 0% 0%, 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%;
  }
  50% {
    background-position: 0% 0%, 50% 50%, 60% 20%, 70% 70%, 80% 10%, 90% 90%, 100% 50%;
  }
}

/* Líneas neón en movimiento */
@keyframes neonLines {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 20px);
  }
}

/* Haz de escaneo */
@keyframes scannerBeam {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Brillo suave de la tarjeta */
@keyframes cardGlow {
  0% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.6),
      inset 0 0 0 2px rgba(0, 255, 255, 0.4),
      0 0 0 1px rgba(0, 255, 255, 0.6),
      0 0 20px rgba(0, 255, 255, 0.4),
      0 0 40px rgba(255, 20, 147, 0.3);
  }
  100% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.6),
      inset 0 0 0 2px rgba(0, 255, 255, 0.6),
      0 0 0 1px rgba(0, 255, 255, 0.8),
      0 0 30px rgba(0, 255, 255, 0.6),
      0 0 60px rgba(255, 20, 147, 0.5);
  }
}

/* Pulso suave de los bordes */
@keyframes borderPulse {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Brillo de las esquinas */
@keyframes cornerGlow {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.8;
  }
}

/* Partículas neón */
@keyframes neonParticle1 {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

@keyframes neonParticle2 {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(-30px);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  #login-page:not([style*="display: none"]) {
    background-size: 
      100% 100%,
      200px 200px,
      150px 150px,
      250px 250px,
      200px 200px,
      120px 120px,
      180px 180px;
  }
  
  #login-page:not([style*="display: none"]) .login-card {
    margin: 20px !important;
    padding: 25px !important;
  }
}









/* Solo cambiar el color del título "Sistema Académico" a blanco */
#login-page .login-title {
  color: white !important;
}











/* Botón con efecto neón */
.btn-neon {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon:hover {
    background: #00ffff;
    color: #1a1a2e;
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 80px #00ffff;
    transform: translateY(-3px);
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

/* Botón con explosión de color */
.btn-explosion {
    background: linear-gradient(45deg, #ff1493, #8b5cf6);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-explosion:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 20, 147, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4);
}

.btn-explosion:active {
    animation: explosion 0.6s ease-out;
}

@keyframes explosion {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 0 50px rgba(255, 20, 147, 1); }
    100% { transform: scale(1); }
}

/* Botón con ondas */
.btn-wave {
    background: linear-gradient(45deg, #3b82f6, #10b981);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-wave:hover::before {
    width: 300px;
    height: 300px;
}

.btn-wave:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Botón con gradiente deslizante */
.btn-slide {
    background: linear-gradient(45deg, #f59e0b, #ef4444);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-slide span {
    position: relative;
    z-index: 2;
}

.btn-slide:hover::before {
    left: 0;
}

.btn-slide:hover {
    transform: translateX(5px);
}

/* Botón con efecto 3D */
.btn-3d {
    background: linear-gradient(45deg, #8b5cf6, #3b82f6);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 0 #6366f1,
        0 12px 20px rgba(0, 0, 0, 0.3);
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #6366f1,
        0 15px 25px rgba(0, 0, 0, 0.4);
}

.btn-3d:active {
    transform: translateY(3px);
    box-shadow: 
        0 3px 0 #6366f1,
        0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Botón con pulso */
.btn-pulse {
    background: linear-gradient(45deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-pulse:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mejora para tu botón de login existente */
#btn-login:hover {
    background: linear-gradient(to right, #2980b9, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    animation: loginGlow 0.3s ease;
}

@keyframes loginGlow {
    0% { box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); }
    100% { box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6); }
}

/* Efecto adicional para cualquier botón */
.btn-hover-effect {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-hover-effect:hover::after {
    width: 200px;
    height: 200px;
}































/* SOBRESCRIBIR LOS ESTILOS EXISTENTES DEL BOTÓN LOGIN */
#btn-login {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 30px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* EFECTO HOVER PARA EL BOTÓN LOGIN */
#btn-login:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.5) !important,
        0 0 30px rgba(52, 152, 219, 0.4) !important,
        0 0 50px rgba(52, 152, 219, 0.2) !important;
    animation: loginGlow 0.3s ease !important;
}

/* EFECTO DE BARRIDO DE LUZ */
#btn-login::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: all 0.6s ease !important;
    z-index: 1 !important;
}

#btn-login:hover::before {
    left: 100% !important;
}

/* ASEGURAR QUE EL TEXTO ESTÉ ENCIMA */
#btn-login {
    z-index: 2 !important;
}

/* ANIMACIÓN DE BRILLO */
@keyframes loginGlow {
    0% { 
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }
    50% { 
        box-shadow: 
            0 8px 25px rgba(52, 152, 219, 0.6),
            0 0 40px rgba(52, 152, 219, 0.5),
            0 0 60px rgba(52, 152, 219, 0.3);
    }
    100% { 
        box-shadow: 
            0 8px 25px rgba(52, 152, 219, 0.5),
            0 0 30px rgba(52, 152, 219, 0.4),
            0 0 50px rgba(52, 152, 219, 0.2);
    }
}

/* EFECTO AL HACER CLICK */
#btn-login:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4) !important;
    transition: all 0.1s ease !important;
}

/* EFECTO DE EXPLOSIÓN AL HACER CLICK */
#btn-login.exploding {
    animation: explosion 0.8s ease-out !important;
}

@keyframes explosion {
    0% { 
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }
    20% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(52, 152, 219, 0.8);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 
            0 0 50px rgba(52, 152, 219, 1),
            0 0 80px rgba(41, 128, 185, 0.8),
            0 0 120px rgba(26, 82, 118, 0.6);
    }
    80% { 
        transform: scale(0.95);
        box-shadow: 0 0 60px rgba(52, 152, 219, 0.9);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }
}

/* PARTÍCULAS DE EXPLOSIÓN */
.particle {
    position: fixed !important;
    width: 6px !important;
    height: 6px !important;
    background: #3498db !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    animation: particle-explosion 1.2s ease-out forwards !important;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.8) !important;
}

@keyframes particle-explosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* EFECTO DE SHAKE PARA CREDENCIALES INCORRECTAS */
.shake {
    animation: shake 0.6s ease-in-out !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* MEJORAR OTROS BOTONES TAMBIÉN */
button:not(#btn-login) {
    transition: all 0.2s ease !important;
}

button:not(#btn-login):hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* BOTONES DE PESTAÑA CON EFECTO */
.tab-btn {
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.tab-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}

.tab-btn.active {
    animation: tabGlow 2s ease-in-out infinite alternate !important;
}

@keyframes tabGlow {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
    100% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
}

/* DROPDOWN BUTTONS CON EFECTO */
#btn-data:hover, #btn-reports:hover {
    background-color: #2c3e50 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4) !important;
}

/* BOTONES DE TRIMESTRE */
.trimester-btn {
    transition: all 0.3s ease !important;
}

.trimester-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}

.trimester-btn.active {
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}






/* MAZINGER EN LOS LADOS IZQUIERDO Y DERECHO */
#login-page {
  background: 
    /* Mazinger lado izquierdo */
    url('https://i.postimg.cc/9RTL9h23/BxxLf6btDcbz.jpg'),
    /* Mazinger lado derecho */
    url('https://i.postimg.cc/9RTL9h23/BxxLf6btDcbz.jpg'),
    /* Color de fondo */
    #1a1a2e !important;
  background-size: 
    auto 100%,
    auto 100%,
    100% 100% !important;
  background-position: 
    left center,
    right center,
    center !important;
  background-repeat: no-repeat !important;
}

/* Degradado en el centro para que se vea mejor el formulario */
#login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, 
    rgba(26, 26, 46, 0.8), 
    rgba(26, 26, 46, 0.9), 
    rgba(26, 26, 46, 0.8)
  );
  z-index: 1;
}






















/* ==========================================
   ESTILOS PARA MENÚS DESPLEGABLES ANIMADOS
   ========================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown button {
  background-color: #34495e;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown button:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: #2c3e50;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  /* Inicialmente ocultos para la animación secuencial */
  opacity: 0;
  transform: translateX(-20px);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f8f9fa;
  color: #3498db;
  transform: translateX(5px);
  padding-left: 20px;
}

.dropdown-content a i {
  width: 20px;
  margin-right: 10px;
  color: #3498db;
  transition: all 0.3s ease;
}

.dropdown-content a:hover i {
  transform: scale(1.2);
  color: #2980b9;
}

/* ==========================================
   ANIMACIONES SECUENCIALES
   ========================================== */

/* Cuando el dropdown está activo, anima los elementos uno por uno */
.dropdown:hover .dropdown-content a {
  animation: slideInSequential 0.4s ease forwards;
}

/* Delays para cada elemento */
.dropdown:hover .dropdown-content a:nth-child(1) {
  animation-delay: 0.1s;
}

.dropdown:hover .dropdown-content a:nth-child(2) {
  animation-delay: 0.2s;
}

.dropdown:hover .dropdown-content a:nth-child(3) {
  animation-delay: 0.3s;
}

.dropdown:hover .dropdown-content a:nth-child(4) {
  animation-delay: 0.4s;
}

.dropdown:hover .dropdown-content a:nth-child(5) {
  animation-delay: 0.5s;
}

.dropdown:hover .dropdown-content a:nth-child(6) {
  animation-delay: 0.6s;
}

.dropdown:hover .dropdown-content a:nth-child(7) {
  animation-delay: 0.7s;
}

/* Keyframes para la animación */
@keyframes slideInSequential {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
  }
  50% {
    transform: translateX(5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ==========================================
   EFECTOS ADICIONALES MODERNOS
   ========================================== */

/* Efecto de onda al hacer hover en el botón principal */
.dropdown button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.dropdown button:hover::before {
  width: 100px;
  height: 100px;
}

/* Efecto de brillo en los elementos del menú */
.dropdown-content a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-content a:hover::before {
  left: 100%;
}

/* Animación del icono de flecha */
.dropdown button .fa-caret-down {
  transition: transform 0.3s ease;
}

.dropdown:hover button .fa-caret-down {
  transform: rotate(180deg);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .dropdown-content {
    min-width: 200px;
    right: 0;
    left: auto;
  }
  
  .dropdown-content a {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* ==========================================
   VERSIÓN ALTERNATIVA CON EFECTO CASCADA
   ========================================== */

/* Si quieres un efecto aún más dramático, usa estas clases */
.dropdown-cascade:hover .dropdown-content a {
  animation: cascadeEffect 0.5s ease forwards;
}

.dropdown-cascade:hover .dropdown-content a:nth-child(1) {
  animation-delay: 0.05s;
}

.dropdown-cascade:hover .dropdown-content a:nth-child(2) {
  animation-delay: 0.1s;
}

.dropdown-cascade:hover .dropdown-content a:nth-child(3) {
  animation-delay: 0.15s;
}

.dropdown-cascade:hover .dropdown-content a:nth-child(4) {
  animation-delay: 0.2s;
}

.dropdown-cascade:hover .dropdown-content a:nth-child(5) {
  animation-delay: 0.25s;
}

.dropdown-cascade:hover .dropdown-content a:nth-child(6) {
  animation-delay: 0.3s;
}

.dropdown-cascade:hover .dropdown-content a:nth-child(7) {
  animation-delay: 0.35s;
}

@keyframes cascadeEffect {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotateX(-90deg);
  }
  50% {
    transform: translateY(5px) rotateX(-45deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}







/* ==========================================
   DISEÑO SIMPLE CON RECTANGULOS DE COLORES
   ========================================== */

#course-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

#course-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

#course-select:hover {
  border-color: #3498db;
}

/* Opciones con colores */
#course-select option {
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
}

/* Opción por defecto */
#course-select option[value=""] {
  background: #f8f9fa;
  color: #6c757d;
  font-style: italic;
}



/* Colores para otras materias */
#course-select option[data-subject="other"] {
  background: linear-gradient(90deg, #f5f5f5, #eeeeee);
  color: #424242;
  border-left: 5px solid #9e9e9e;
}

/* Efecto hover en opciones */
#course-select option:hover {
  background: #e3f2fd !important;
  color: #1976d2 !important;
}

/* Opción seleccionada */
#course-select option:checked {
  background: #2196f3 !important;
  color: white !important;
  font-weight: bold;
}













/* ==========================================
   TRIMESTRES - CÓDIGO FINAL CORREGIDO
   ========================================== */

/* CONTENEDOR PRINCIPAL */
.trimester-tabs {
  margin-bottom: 20px;
}

.navbar-container {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 50px;
  padding: 6px;
  display: inline-flex;
  gap: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 5px !important;
}

/* BOTÓN TRIMESTRE - ESTADO BASE */
.trimester-btn {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding: 12px 20px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 10 !important;
}

/* HOVER NORMAL */
.trimester-btn:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
}

/* ESTADO ACTIVO - CON ANIMACIÓN DE COLORES */
.trimester-btn.active {
  background: transparent !important;
  color: white !important;
  border: 3px solid transparent !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
  
  /* FONDO CON GRADIENTE ANIMADO */
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    linear-gradient(45deg, #00ff88, #00d4ff, #ff6b6b, #ffa500, #00ff88) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 400% 400% !important;
  
  /* ACTIVAR ANIMACIÓN */
  animation: borderGlow 3s linear infinite !important;
  animation-play-state: running !important;
}


/* EFECTO BURBUJA AL HACER HOVER
.trimester-btn::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.5s ease !important;
  z-index: 1 !important;
} */

.trimester-btn:hover::after {
  width: 150% !important;
  height: 250% !important;
}

/* ASEGURAR QUE EL TEXTO ESTÉ VISIBLE */
.trimester-btn span {
  position: relative !important;
  z-index: 15 !important;
  display: inline-block !important;
}

/* ==========================================
   ANIMACIONES
   ========================================== */

/* ANIMACIÓN DE COLORES ROTATORIOS PARA EL BORDE */
@keyframes borderGlow {
  0% { 
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
      linear-gradient(0deg, #00ff88, #00d4ff, #ff6b6b, #ffa500, #00ff88);
  }
  25% { 
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
      linear-gradient(90deg, #00d4ff, #ff6b6b, #ffa500, #00ff88, #00d4ff);
  }
  50% { 
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
      linear-gradient(180deg, #ff6b6b, #ffa500, #00ff88, #00d4ff, #ff6b6b);
  }
  75% { 
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
      linear-gradient(270deg, #ffa500, #00ff88, #00d4ff, #ff6b6b, #ffa500);
  }
  100% { 
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
      linear-gradient(360deg, #00ff88, #00d4ff, #ff6b6b, #ffa500, #00ff88);
  }
}

/* ANIMACIÓN DEL PULSO DE LA BOLITA VERDE */
@keyframes dotPulse {
  0% { 
    transform: translateY(-50%) scale(1);
    opacity: 1;
    box-shadow: 
      0 0 10px #00ff88,
      0 0 20px #00ff88,
      0 0 30px rgba(0, 255, 136, 0.8);
  }
  50% { 
    transform: translateY(-50%) scale(1.4);
    opacity: 0.8;
    box-shadow: 
      0 0 15px #00ff88,
      0 0 30px #00ff88,
      0 0 45px rgba(0, 255, 136, 0.9);
  }
  100% { 
    transform: translateY(-50%) scale(1);
    opacity: 1;
    box-shadow: 
      0 0 10px #00ff88,
      0 0 20px #00ff88,
      0 0 30px rgba(0, 255, 136, 0.8);
  }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .trimester-btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  
  .trimester-btn.active::before {
    left: -10px !important;
    width: 8px !important;
    height: 8px !important;
  }
}










/* ==========================================
   EFECTO BURBUJA PARA TODOS LOS BOTONES
   ========================================== */

/* PREPARAR TODOS LOS BOTONES PARA BURBUJA */
.trimester-btn,
.tab-btn,
#btn-add-activity,
#btn-remove-activity,
#btn-save,
button {
  position: relative !important;
  overflow: hidden !important;
}

/* BURBUJA PARA TRIMESTRES (ya funciona) */
.trimester-btn::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.4s ease !important;
  z-index: 1 !important;
}

.trimester-btn:hover::after {
  width: 120% !important;
  height: 200% !important;
}

/* BURBUJA PARA AGREGAR ACTIVIDAD - COLOR VERDE */
#btn-add-activity::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(0, 255, 136, 0.2) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.4s ease !important;
  z-index: 1 !important;
}

#btn-add-activity:hover::after {
  width: 120% !important;
  height: 200% !important;
  background: rgba(0, 255, 136, 0.4) !important;
}

/* BURBUJA PARA ELIMINAR ACTIVIDAD - COLOR ROJO */
#btn-remove-activity::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(255, 107, 107, 0.2) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.4s ease !important;
  z-index: 1 !important;
}

#btn-remove-activity:hover::after {
  width: 120% !important;
  height: 200% !important;
  background: rgba(255, 107, 107, 0.4) !important;
}

/* BURBUJA PARA GUARDAR CAMBIOS - COLOR AZUL */
#btn-save::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(0, 212, 255, 0.2) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.4s ease !important;
  z-index: 1 !important;
}

#btn-save:hover::after {
  width: 120% !important;
  height: 200% !important;
  background: rgba(0, 212, 255, 0.4) !important;
}

/* BURBUJA PARA PESTAÑAS (Calificaciones, etc.) - COLOR AZUL */
.tab-btn::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(52, 152, 219, 0.2) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.4s ease !important;
  z-index: 1 !important;
}

.tab-btn:hover::after {
  width: 120% !important;
  height: 200% !important;
  background: rgba(52, 152, 219, 0.4) !important;
}

/* BURBUJA PARA BOTONES GENERALES - COLOR BLANCO */
button:not(.trimester-btn):not(.tab-btn):not(#btn-add-activity):not(#btn-remove-activity):not(#btn-save)::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: all 0.4s ease !important;
  z-index: 1 !important;
}

button:not(.trimester-btn):not(.tab-btn):not(#btn-add-activity):not(#btn-remove-activity):not(#btn-save):hover::after {
  width: 120% !important;
  height: 200% !important;
  background: rgba(255, 255, 255, 0.3) !important;
}

/* ASEGURAR QUE EL TEXTO ESTÉ VISIBLE */
.trimester-btn span,
.tab-btn span,
#btn-add-activity span,
#btn-remove-activity span,
#btn-save span,
button span {
  position: relative !important;
  z-index: 10 !important;
}

/* TAMBIÉN APLICAR A TEXTO SIN SPAN */
.trimester-btn,
.tab-btn,
#btn-add-activity,
#btn-remove-activity,
#btn-save,
button {
  z-index: 2 !important;
}



/* ==========================================
   ARREGLAR TODAS LAS PESTAÑAS ACTIVAS
   ========================================== */

/* TODAS LAS PESTAÑAS ACTIVAS - FONDO AZUL POR DEFECTO CON EFECTO ESPEJO */
.tab-btn.active,
button.active[data-tab],
.student-tab.active {
  /* COLOR GRIS OSCURO PARA PESTAÑAS NORMALES */
  color: #2c3e50 !important;
  font-weight: bold !important;
  
  /* FONDO AZUL SUAVE POR DEFECTO */
  background: rgba(52, 152, 219, 0.1) !important;
  
  /* BORDES CON COLORES NEUTROS - EFECTO ESPEJO */
  border: 6px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.1)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  
  /* ASEGURAR QUE EL EFECTO ESPEJO APAREZCA */
  position: relative !important;
  overflow: visible !important;
  z-index: 10 !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* ==========================================
   CALIFICACIONES DINÁMICAS SEGÚN TRIMESTRE - CORREGIDO
   ========================================== */

/* CALIFICACIONES cuando PRIMER TRIMESTRE está activo - VERDE */
.trimester-btn.active[data-trimester="1"] ~ * .tab-btn.active[data-tab="grades"],
body[data-active-trimester="1"] .tab-btn.active[data-tab="grades"],
.tab-btn.active[data-tab="grades"].trimester-1 {
  color: white !important; /* ? TEXTO BLANCO */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO VERDE como PRIMER TRIMESTRE */
  background: rgba(39, 174, 96, 0.15) !important;
  
  border: 8px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.15)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  padding: 12px 18px !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* CALIFICACIONES cuando SEGUNDO TRIMESTRE está activo - GRIS CÁLIDO SUAVE */
.trimester-btn.active[data-trimester="2"] ~ * .tab-btn.active[data-tab="grades"],
body[data-active-trimester="2"] .tab-btn.active[data-tab="grades"],
.tab-btn.active[data-tab="grades"].trimester-2 {
  color: white !important; /* ? TEXTO BLANCO */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO GRIS CÁLIDO SUAVE - MAS NEUTRAL */
  background: rgba(149, 165, 166, 0.12) !important;
  
  border: 8px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(149, 165, 166, 0.12), rgba(149, 165, 166, 0.12)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  padding: 12px 18px !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* CALIFICACIONES cuando TERCER TRIMESTRE está activo - AZUL GRISÁCEO SUAVE */
.trimester-btn.active[data-trimester="3"] ~ * .tab-btn.active[data-tab="grades"],
body[data-active-trimester="3"] .tab-btn.active[data-tab="grades"],
.tab-btn.active[data-tab="grades"].trimester-3 {
  color: white !important; /* ? TEXTO BLANCO */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO AZUL GRISÁCEO SUAVE - MAS NEUTRAL */
  background: rgba(127, 140, 141, 0.12) !important;
  
  border: 8px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(127, 140, 141, 0.12), rgba(127, 140, 141, 0.12)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  padding: 12px 18px !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* NOTAS TRIMESTRALES - FONDO GRIS CÁLIDO SUAVE */
.tab-btn.active[data-tab="trimester"],
button.active[data-tab="trimester"] {
  color: white !important; /* ? TEXTO BLANCO */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO GRIS CÁLIDO PARA NOTAS TRIMESTRALES */
  background: rgba(149, 165, 166, 0.12) !important;
  
  border: 6px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(149, 165, 166, 0.12), rgba(149, 165, 166, 0.12)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* PROMEDIO ANUAL - FONDO AZUL GRISÁCEO SUAVE */
.tab-btn.active[data-tab="annual"],
button.active[data-tab="annual"] {
  color: white !important; /* ? TEXTO BLANCO */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO AZUL GRISÁCEO PARA PROMEDIO ANUAL */
  background: rgba(127, 140, 141, 0.12) !important;
  
  border: 6px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(127, 140, 141, 0.12), rgba(127, 140, 141, 0.12)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* FORZAR que TODAS las pestañas activas tengan TEXTO BLANCO */
.tab-btn.active,
button.active[data-tab],
.student-tab.active,
.trimester-btn.active {
  color: white !important; /* ? BLANCO PARA TODOS */
  font-weight: bold !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* TRIMESTRES - MISMO EFECTO PSICODÉLICO QUE LAS PESTAÑAS */
.trimester-btn.active {
  /* TEXTO BLANCO PARA TRIMESTRES */
  color: white !important;
  font-weight: bold !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
  
  /* MISMO EFECTO PSICODÉLICO QUE LAS PESTAÑAS */
  border: 6px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.1)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  
  /* MISMA ANIMACIÓN PSICODÉLICA + DILATACIÓN */
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* PRIMER TRIMESTRE - MISMO EFECTO + FONDO VERDE */
.trimester-btn.active[data-trimester="1"] {
  color: white !important; /* BLANCO para fondo verde */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO VERDE COMO CALIFICACIONES */
  background: rgba(39, 174, 96, 0.15) !important;
  
  border: 6px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.15)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* SEGUNDO TRIMESTRE - MISMO EFECTO + FONDO GRIS CÁLIDO */
.trimester-btn.active[data-trimester="2"] {
  color: white !important; /* BLANCO para fondo gris claro */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO GRIS CÁLIDO COMO NOTAS TRIMESTRALES */
  background: rgba(149, 165, 166, 0.12) !important;
  
  border: 6px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(149, 165, 166, 0.12), rgba(149, 165, 166, 0.12)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* TERCER TRIMESTRE - MISMO EFECTO + FONDO AZUL GRISÁCEO */
.trimester-btn.active[data-trimestre="3"] {
  color: white !important; /* BLANCO para fondo azul grisáceo */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  
  /* FONDO AZUL GRISÁCEO COMO PROMEDIO ANUAL */
  background: rgba(127, 140, 141, 0.12) !important;
  
  border: 6px solid transparent !important;
  background-clip: padding-box !important;
  background-image: 
    linear-gradient(rgba(127, 140, 141, 0.12), rgba(127, 140, 141, 0.12)),
    linear-gradient(45deg, 
      #1a1a1a, #333333, #4a4a4a, #666666, 
      #808080, #999999, #b3b3b3, #cccccc, 
      #2c3e50, #34495e, #5d6d7e, #85929e, 
      #1b2631, #212f3d) !important;
  background-origin: border-box !important;
  background-size: 100% 100%, 600% 600% !important;
  
  animation: 
    bordesPsicodelicosMegaIntensa 2.5s linear infinite,
    dilatacionSutil 2s ease-in-out infinite !important;
}

/* BOTONES DE ACCIÓN - FONDO SUTIL + DILATACIÓN PEQUEÑA */
#btn-add-activity.active {
  background: rgba(39, 174, 96, 0.1) !important;
  border-color: #27ae60 !important;
  animation: 
    borderVerde 2s ease-in-out infinite alternate,
    dilatacionPequena 2s ease-in-out infinite !important;
}

#btn-remove-activity.active {
  background: rgba(231, 76, 60, 0.1) !important;
  border-color: #e74c3c !important;
  animation: 
    borderRojo 2s ease-in-out infinite alternate,
    dilatacionPequena 2s ease-in-out infinite !important;
}

#btn-save.active {
  background: rgba(52, 152, 219, 0.1) !important;
  border-color: #3498db !important;
  animation: 
    borderAzul 2s ease-in-out infinite alternate,
    dilatacionPequena 2s ease-in-out infinite !important;
}

/* ==========================================
   ANIMACIONES SOLO PARA BORDES/FONDOS
   ========================================== */

/* ANIMACIÓN SÚPER PSICODÉLICA - COLORES NEUTROS Y MASCULINOS */
@keyframes bordesPsicodelicosMegaIntensa {
  0% { 
    background-image: 
      linear-gradient(#fff, #fff),
      linear-gradient(0deg, #1a1a1a, #333333, #4a4a4a, #666666, #808080, #999999, #1a1a1a);
    background-position: 0% 0%, 0% 0%;
    filter: hue-rotate(0deg) brightness(1.2) saturate(1.2);
  }
  16.66% { 
    background-image: 
      linear-gradient(#fff, #fff),
      linear-gradient(60deg, #333333, #4a4a4a, #666666, #808080, #999999, #b3b3b3, #333333);
    background-position: 0% 0%, 16.66% 16.66%;
    filter: hue-rotate(15deg) brightness(1.3) saturate(1.3);
  }
  33.33% { 
    background-image: 
      linear-gradient(#fff, #fff),
      linear-gradient(120deg, #4a4a4a, #666666, #808080, #999999, #b3b3b3, #cccccc, #4a4a4a);
    background-position: 0% 0%, 33.33% 33.33%;
    filter: hue-rotate(30deg) brightness(1.4) saturate(1.4);
  }
  50% { 
    background-image: 
      linear-gradient(#fff, #fff),
      linear-gradient(180deg, #666666, #808080, #999999, #b3b3b3, #cccccc, #2c3e50, #666666);
    background-position: 0% 0%, 50% 50%;
    filter: hue-rotate(45deg) brightness(1.5) saturate(1.5);
  }
  66.66% { 
    background-image: 
      linear-gradient(#fff, #fff),
      linear-gradient(240deg, #808080, #999999, #b3b3b3, #cccccc, #2c3e50, #34495e, #808080);
    background-position: 0% 0%, 66.66% 66.66%;
    filter: hue-rotate(30deg) brightness(1.4) saturate(1.4);
  }
  83.33% { 
    background-image: 
      linear-gradient(#fff, #fff),
      linear-gradient(300deg, #999999, #b3b3b3, #cccccc, #2c3e50, #34495e, #5d6d7e, #999999);
    background-position: 0% 0%, 83.33% 83.33%;
    filter: hue-rotate(15deg) brightness(1.3) saturate(1.3);
  }
  100% { 
    background-image: 
      linear-gradient(#fff, #fff),
      linear-gradient(360deg, #1a1a1a, #333333, #4a4a4a, #666666, #808080, #999999, #1a1a1a);
    background-position: 0% 0%, 100% 100%;
    filter: hue-rotate(0deg) brightness(1.2) saturate(1.2);
  }
}

/* ANIMACIONES PARA DILATACIÓN PEQUEÑA */
@keyframes dilatacionPequena {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.02); /* Solo 2% más grande */
  }
}

/* ANIMACIONES PARA BOTONES DE ACCIÓN - SOLO BORDE */
@keyframes borderVerde {
  0% { 
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.3);
  }
  100% { 
    border-color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
  }
}

@keyframes borderRojo {
  0% { 
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
  }
  100% { 
    border-color: #c0392b;
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.5);
  }
}

@keyframes borderAzul {
  0% { 
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
  }
  100% { 
    border-color: #2980b9;
    box-shadow: 0 0 15px rgba(41, 128, 185, 0.5);
  }
}

/* ANIMACIONES DE DILATACIÓN SUTIL */
@keyframes dilatacionSutil {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.03); /* Solo 3% más grande */
  }
}

/* ANIMACIONES DE FONDOS QUE SE MUEVEN */

/* FONDO ROSA ANIMADO */
@keyframes fondoAnimadoRosa {
  0% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% { 
    background-position: 50% 100%;
    filter: hue-rotate(10deg);
  }
  50% { 
    background-position: 100% 50%;
    filter: hue-rotate(20deg);
  }
  75% { 
    background-position: 50% 0%;
    filter: hue-rotate(10deg);
  }
  100% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
}

/* FONDO AZUL ANIMADO */
@keyframes fondoAnimadoAzul {
  0% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% { 
    background-position: 100% 0%;
    filter: hue-rotate(-10deg);
  }
  50% { 
    background-position: 100% 100%;
    filter: hue-rotate(-20deg);
  }
  75% { 
    background-position: 0% 100%;
    filter: hue-rotate(-10deg);
  }
  100% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
}

/* FONDO AMARILLO ANIMADO */
@keyframes fondoAnimadoAmarillo {
  0% { 
    background-position: 50% 0%;
    filter: hue-rotate(0deg);
  }
  25% { 
    background-position: 0% 50%;
    filter: hue-rotate(15deg);
  }
  50% { 
    background-position: 50% 100%;
    filter: hue-rotate(30deg);
  }
  75% { 
    background-position: 100% 50%;
    filter: hue-rotate(15deg);
  }
  100% { 
    background-position: 50% 0%;
    filter: hue-rotate(0deg);
  }
}

/* ==========================================
   REGLAS FINALES PARA PESTAÑAS ACTIVAS
   ========================================== */

/* FORZAR TEXTO BLANCO EN TODAS LAS PESTAÑAS ACTIVAS */
.tab-btn.active {
  color: white !important; /* ? BLANCO EN VEZ DE AZUL */
  font-weight: bold !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
  
  /* ASEGURAR QUE LOS EFECTOS ESPEJO APAREZCAN */
  position: relative !important;
  overflow: visible !important;
  z-index: 10 !important;
}

/* FORZAR TEXTO BLANCO EN TODAS LAS VARIANTES */
.tab-btn.active,
button.active[data-tab],
.student-tab.active {
  color: white !important;
  font-weight: bold !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* CASOS ESPECÍFICOS CON TEXTO BLANCO */
.tab-btn.active[data-tab="grades"] {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.tab-btn.active[data-tab="trimester"] {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.tab-btn.active[data-tab="annual"] {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* TRIMESTRES CON TEXTO BLANCO */
.trimester-btn.active[data-trimester="1"],
.trimester-btn.active[data-trimester="2"],
.trimester-btn.active[data-trimestre="3"] {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* HOVER EFFECTS CON TEXTO BLANCO */
.tab-btn.active:hover,
.student-tab.active:hover,
button.active[data-tab]:hover {
  color: white !important;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9) !important;
}

/* ANULAR CUALQUIER HERENCIA DE COLOR */
.tab-btn.active * {
  color: inherit !important;
}

/* FUERZA MÁXIMA - TODOS LOS ELEMENTOS ACTIVOS */
.tab-btn.active,
.student-tab.active,
button[data-tab].active,
.tabs .tab-btn.active,
.student-tabs .student-tab.active {
  color: white !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}
















