@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --admin-gold: #D4AF37;
  --admin-gold-hover: #C5A059;
  --admin-gold-light: #FDFBF7;
  --admin-gold-border: #E8DECD;
  --admin-dark: #0A0A0C;
  --admin-dark-secondary: #18181B;
  --admin-bg-light: #FAF7F2;
  --admin-card-border: #E8E0D5;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FAF7F2;
  color: #0A0A0C;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.font-cinzel {
  font-family: 'Cinzel', Georgia, serif;
}

/* Metric Cards with Gold & High-Contrast Accents */
.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--admin-card-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.12);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.kpi-yellow::before { background-color: #D4AF37; }
.kpi-black::before, .kpi-blue::before { background-color: #0A0A0C; }
.kpi-green::before { background-color: #10B981; }
.kpi-orange::before { background-color: #D4AF37; }
.kpi-red::before { background-color: #EF4444; }

/* Navigation Tabs */
.nav-tab-btn {
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #71717A;
  border-radius: 10px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  user-select: none;
}

.nav-tab-btn:hover {
  color: #0A0A0C;
  background-color: #FAF7F2;
}

.nav-tab-btn.active {
  color: #0A0A0C;
  background-color: #FBF8F3;
  border-bottom: 2px solid #D4AF37;
}

/* Custom table styles - Fondo claro, Negro y Dorado */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background-color: #FBF8F3;
  color: #52525B;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid #E8DECD;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F4EFE6;
  font-size: 13px;
  color: #0A0A0C;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #FDFBF7;
}

/* Scrollbar explícita y visible para mouse en PC / Laptops */
.tabs-scrollbar {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 #F4EFEA;
  -webkit-overflow-scrolling: touch;
}

.tabs-scrollbar::-webkit-scrollbar {
  height: 7px;
}

.tabs-scrollbar::-webkit-scrollbar-track {
  background: #F4EFEA;
  border-radius: 6px;
}

.tabs-scrollbar::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 6px;
}

.tabs-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #B8860B;
}

/* Scrollbars generales */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8860B;
}

/* Miniaturas de imágenes autoajustables */
.thumb-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #E8DECD;
  background-color: #FAF7F2;
}
