/* ==============================
   RESET Y BASE GENERAL
================================= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fefefe;
  overflow-x: hidden;
}

.centered-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ==============================
   CARD GENERAL
================================= */
.card {
  background-color: rgba(0, 0, 0, 0.78);
  padding: 50px;
  border-radius: 18px;
  width: min(92vw, 620px);   /* 💡 tamaño estilo HOME */
  text-align: center;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: #fff;               /* texto blanco */
}

.card-wide {
  background-color: rgba(0, 0, 0, 0.78);
  padding: 60px;
  border-radius: 18px;
  width: min(96vw, 1000px);
  text-align: center;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: #fff; /* TEXTO BLANCO */
}

/* ==============================
   TÍTULOS
================================= */
h2 {
  color: #00c3ff;
  font-size: 28px;
  margin-bottom: 28px;
}

/* ==============================
   LOGO
================================= */
.logo {
  margin: 0 auto 22px;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.logo img {
  max-width: 70%;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

/* ==============================
   LABELS E INPUTS
================================= */
label {
  font-size: 1rem;
  color: #e3edf7;
  display: block;
  margin-bottom: 6px;
}

select,
input[type="date"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
  color: #fff;
  outline: none;
  cursor: pointer;
}

select option {
  background: #1b1f27;
  color: #fff;
}

/* ==============================
   BOTONES
================================= */
.btn {
  background: linear-gradient(180deg, #18c3ff, #009dd4);
  color: #fff;
  padding: 12px 20px;
  margin: 10px 6px;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  transition: transform .2s;
}

.btn:hover {
  transform: scale(1.07);
}

.btn:active {
  transform: scale(0.95);
}

.btn-secondary {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #eee;
}

.btn-stack {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==============================
   TABLA - WRAPPER
================================= */
.historial-table-wrapper {
  width: 100%;
  margin-top: 25px;
  background: #1a1f29;
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);

  /* Altura con scroll */
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==============================
   TABLA
================================= */
.historial-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #fff;
}

.historial-table thead th {
  background: #2a313d;
  color: #cfe6ff;
  font-weight: 600;
  padding: 14px;
  border-bottom: 1px solid #3a4352;
  position: sticky;
  top: 0;
  z-index: 1;
}

.historial-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #2b3340;
  white-space: nowrap;
}

.historial-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.06);
}

.historial-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.03);
}

.historial-table tbody tr:hover {
  background: rgba(25,193,255,0.12);
}

/* ==============================
   MENSAJE "NO DATA"
================================= */
.no-data {
  color: #e3edf7;
  font-size: 18px;
  padding: 24px;
  text-align: center;
}
