/* ═══════════════════════════════════════════════════════════
   TRAVEL BOX — Admin Panel · admin-base.css
   Variables CSS + Reset + Tipografías
   ═══════════════════════════════════════════════════════════ */

/* ── VARIABLES DE MARCA (admin) ── */
:root {
  /* Paleta principal */
  --navy-deep:   #0F1C3A;
  --navy:        #1A2E5C;
  --navy-mid:    #243872;
  --navy-light:  #2A4080;
  --gold:        #CBA96C;
  --gold-light:  #E8D5A3;
  --gold-dark:   #A8864A;
  --white:       #FFFFFF;
  --gray-soft:   #F4F6F9;
  --gray-mid:    #8B9CB8;
  --gray-border: #1E3060;
  --gray-text:   #A8B8D0;

  /* Estados */
  --success:  #38A169;
  --danger:   #E53E3E;
  --warning:  #D69E2E;
  --info:     #3182CE;

  /* Fondos de badge por estado */
  --badge-agendada:     rgba(214,158,46,0.18);
  --badge-llego:        rgba(49,130,206,0.18);
  --badge-presentacion: rgba(159,122,234,0.18);
  --badge-compro:       rgba(56,161,105,0.18);
  --badge-nocompro:     rgba(229,62,62,0.18);

  /* Tipografías */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-tag:     'Jura', sans-serif;

  /* Espaciado */
  --sidebar-w:   240px;
  --navbar-h:    60px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;

  /* Sombras */
  --shadow-gold: 0 4px 20px rgba(203,169,108,0.30);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-deep: 0 12px 48px rgba(0,0,0,0.5);

  /* Gradientes */
  --gradient-gold:   linear-gradient(135deg, #CBA96C 0%, #E8D5A3 50%, #CBA96C 100%);
  --gradient-sidebar: linear-gradient(180deg, #0F1C3A 0%, #1A2E5C 100%);

  /* Transiciones */
  --t-fast:   0.15s ease;
  --t-smooth: 0.30s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-deep);
  color: var(--white);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul    { list-style: none; }
input, select, textarea { font-family: var(--font-body); }

/* ── SCROLLBAR CUSTOM ── */
::-webkit-scrollbar          { width: 5px; height: 5px; }
::-webkit-scrollbar-track    { background: var(--navy-deep); }
::-webkit-scrollbar-thumb    { background: var(--navy-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── TIPOGRAFÍA BASE ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* ── LAYOUT RAÍZ DEL ADMIN ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.admin-content {
  flex: 1;
  padding: 28px 32px;
  max-width: 1400px;
  width: 100%;
}

/* ── UTILIDADES ── */
.text-gold    { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted   { color: var(--gray-text); }

.font-display { font-family: var(--font-display); }
.font-tag     { font-family: var(--font-tag); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }

.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.mb-8         { margin-bottom: 8px; }
.mb-16        { margin-bottom: 16px; }
.mb-24        { margin-bottom: 24px; }

.w-full       { width: 100%; }
.hidden       { display: none !important; }

/* ── LOADER ── */
.tb-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(203,169,108,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: tb-spin 0.7s linear infinite;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

.tb-loader-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* ── PAGE LOADER OVERLAY ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.page-loader-text {
  font-family: var(--font-tag);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9000;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--navy);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-deep);
  font-size: 0.875rem;
  max-width: 340px;
  animation: toast-in 0.3s var(--t-smooth);
}
.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error   { border-left: 3px solid var(--danger); }
.toast.toast-warning { border-left: 3px solid var(--warning); }
.toast.toast-info    { border-left: 3px solid var(--info); }
.toast.fade-out      { animation: toast-out 0.3s var(--t-smooth) forwards; }

@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(20px); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .admin-main         { margin-left: 0; }
  .admin-content      { padding: 20px 16px; }
}
