:root {
    --primary-color: #FF6B00;
    --secondary-color: #333;
    --background-dark: #1A1A1A;
    --background-light: #2A2A2A;
    --text-light: #FFFFFF;
    --text-gray: #CCCCCC;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FFC107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    padding: 20px;
}

body.staff-dashboard .container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--background-dark);   /* ✅ fondo oscuro */
    color: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.user-info {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tarjetas de sección: Reserva, Clases, Asistencias, Pagos y ahora Asistencias Historial */
.reservation-section,
.reserved-classes,
.assistance-section,
.payment-history,
.attendance-history-box {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CONTROLES DE FILTRO EN HISTORIAL DE PAGOS */
.history-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.history-controls label {
    color: var(--text-light);
    font-weight: 500;
}

.history-controls select {
    background-color: #444;
    color: var(--text-light);
}

/* LISTA FILTRADA OCULTA HASTA “Mostrar” */
#filteredPaymentHistoryList {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border-top: 1px solid #555;
    padding-top: 10px;
}

/* ESTILO DE LA TABLA DENTRO DE filteredPaymentHistoryList */
#filteredPaymentHistoryList table {
    width: 100%;
    border-collapse: collapse;
}

#filteredPaymentHistoryList th,
#filteredPaymentHistoryList td {
    padding: 8px 12px;
    border: 1px solid #555;
    text-align: left;
}

#filteredPaymentHistoryList th {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* NOTIFICACIONES EN PANTALLA (sin cambios) */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    z-index: 1000;
    display: none;
    pointer-events: none;
}
.notification.success {
    background-color: rgba(0, 128, 0, 0.85);
    color: #fff;
}
.notification.error {
    background-color: rgba(220, 53, 69, 0.85);
    color: #fff;
}

.notification.success {
    background-color: rgba(0, 128, 0, 0.85);
    color: #fff;
}
.notification.error {
    background-color: rgba(220, 53, 69, 0.85);
    color: #fff;
}

 /* Estado del cliente */
.active {
    color: var(--success-color);
}

.expired {
    color: var(--warning-color);
}

.inactive {
    color: var(--error-color);
}

/* Responsive */
@media (max-width: 768px) {
    .reservation-controls {
        flex-direction: column;
    }
    
    .assistance-cards {
        flex-direction: column;
    }
    
    .card {
        width: 100%;
    }
}
/* Historial de Asistencias: oculto hasta pulsar “Mostrar” */
#attendanceHistoryList {
  display: none;            /* oculto por defecto */
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  border-top: 1px solid #555;
  padding-top: 10px;
}
.button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.button:hover {
    background-color: #e65c00;
}
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1rem 1rem;
  }

  h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .reservation-controls,
  .history-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  select,
  button {
    width: 100%;
  }

  .cards {
    flex-direction: column;
  }

  .card {
    width: 100%;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
  }
}
/* ==== STAFF DASHBOARD KPIs ==== */
#kpiBoard {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#kpiBoard .card {
  background: var(--background-dark);  /* Fondo oscuro, igual que el body */
  color: var(--text-light);
  border-radius: 12px;
  padding: 15px;
  flex: 1;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#kpiBoard .card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 5px;
}

#kpiBoard .card p {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}
