/* RESET GENERAL */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

/* HEADER Y NAV */
header {
  background: #1f1f1f;
  padding: 15px 30px;
  text-align: right;
}
.panel-btn {
  color: #00aaff;          /* Color del texto del botón */
  text-decoration: none;   /* Quita el subrayado */
  padding: 8px 16px;       /* Espaciado interno */
  background-color: #222;  /* Fondo oscuro */
  border: 1px solid #00aaff; /* Borde del botón */
  border-radius: 4px;      /* Bordes redondeados */
  font-weight: bold;       /* Texto en negrita */
  transition: all 0.3s;    /* Suaviza los cambios al pasar el mouse */
  display: inline-block;   /* Para que respete el padding y tamaño */
}

.panel-btn:hover {
  background-color: #00aaff; /* Fondo al pasar el mouse */
  color: #fff;               /* Texto blanco al pasar el mouse */
}


/* BOTONES GENERALES */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 150px; 
  height: 45px;    
  padding: 0 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* BOTONES ESPECÍFICOS */
.btn-primary {
  background-color: #3a86ff;
  color: #fff;
}

.btn-primary:hover {
  background-color: #265dcc;
}

.btn-editar {
  background-color: #ffd166;
  color: #000;
}

.btn-editar:hover {
  background-color: #e0b800;
}

.btn-eliminar {
  background-color: #ef476f;
  color: #fff;
}

.btn-eliminar:hover {
  background-color: #d1365b;
}

.btn-logout {
  background-color: #da0303;
  color: #fff;
}

.btn-logout:hover {
  background-color: #e44444;
}

/* BIENVENIDA */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
}

.welcome-message {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECCIÓN DE BIENVENIDA */
.welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
  text-align: center;
  animation: fadeIn 1.5s ease forwards;
}

.welcome-text {
  font-size: 3.5rem;
  font-weight: 700;
  color: #00f5d4;
  text-shadow: 0 0 15px rgba(0, 245, 212, 0.7);
  margin-bottom: 20px;
  animation: neonBlink 2s infinite alternate;
}

.subtitle {
  font-size: 1.5rem;
  color: #b0b0b0;
  margin-bottom: 40px;
}

@keyframes neonBlink {
  from { text-shadow: 0 0 15px rgba(0, 245, 212, 0.7); }
  to   { text-shadow: 0 0 30px rgba(0, 245, 212, 1); }
}

/* TABLA */
table {
  width: 95%;
  margin: 40px auto;
  border-collapse: collapse;
  text-align: center;
}

table thead tr {
  background-color: #3a86ff;
  color: #fff;
}

table th, table td {
  padding: 14px;
  border: 1px solid #333;
  border-radius: 8px;
}

table tbody tr:nth-child(even) {
  background-color: #1e1e1e;
}

table tbody tr:hover {
  background-color: #2b2b2b;
}

.mensaje-exito {
  display: none;
  margin: 20px auto;
  background-color: #38b000;
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  width: fit-content;
  font-weight: bold;
  text-align: center;
}

/* ADMIN HEADER */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  max-width: 1200px;
  margin: 40px auto 20px auto;
  flex-wrap: wrap;
}

.admin-header h2 {
  flex: 1;
  text-align: center;
  color: #00f5d4;
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(0, 245, 212, 0.7);
  animation: neonBlink 2s infinite alternate;
}

.admin-header h2 a {
  text-decoration: none;
  color: inherit;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* MODALES */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #1f1f1f;
  padding: 40px;
  border-radius: 15px;
  width: 95%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  color: #aaa;
  font-size: 28px;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-content .close:hover {
  color: #fff;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: none;
  background-color: #292929;
  color: #e0e0e0;
  font-size: 1rem;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: 2px solid #3a86ff;
  background-color: #383838;
}

/* FOOTER */
.site-footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-family: sans-serif;
  font-size: 14px;
}
