/**
 * UniApp - Estilos Oficiales del Panel de Administración 2050
 * Dark Glassmorphism, Acentos Neón, Alta Densidad de Datos y Microanimaciones
 */

:root {
  --bg-deep: #050811;
  --bg-surface: #0a1124;
  --bg-surface-glass: rgba(13, 22, 45, 0.72);
  --bg-card: rgba(18, 30, 60, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(59, 130, 246, 0.35);

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-danger: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
  --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
}

/* ==========================================================
   PANTALLA DE LOGIN
   ========================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-glass-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow-blue);
  animation: fadeIn 0.4s ease-out;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-glow {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.login-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(120deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field label i {
  color: var(--accent-blue);
  margin-right: 4px;
}

.form-field input {
  width: 100%;
  background: rgba(10, 17, 36, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.35);
  background: rgba(15, 23, 48, 0.95);
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 2.8rem;
}

.btn-toggle-password {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: var(--accent-cyan);
}

.btn-primary-glow {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-primary-glow:active {
  transform: translateY(0);
}

.login-error {
  margin-top: 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-danger);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.85rem;
  color: #fca5a5;
  text-align: center;
}

.login-footer {
  text-align: center;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.25rem;
}

.link-return {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.link-return:hover {
  color: var(--accent-cyan);
}

/* ==========================================================
   LAYOUT PRINCIPAL DEL PANEL (ADMIN APP)
   ========================================================== */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
  width: 270px;
  background: var(--bg-surface-glass);
  border-right: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
}

.brand-icon-pulse {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.sidebar-user-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  display: block;
}

.user-role {
  font-size: 0.7rem;
  color: var(--accent-amber);
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.nav-btn i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-btn:hover i {
  color: var(--accent-cyan);
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(6, 182, 212, 0.08));
  border-color: rgba(59, 130, 246, 0.35);
  color: #ffffff;
  font-weight: 700;
}

.nav-btn.active i {
  color: var(--accent-cyan);
}

.badge-live-count {
  margin-left: auto;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-action-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-action-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.btn-logout:hover {
  color: var(--accent-danger);
}

/* ÁREA DE CONTENIDO PRINCIPAL */
.admin-main {
  margin-left: 270px;
  flex: 1;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

/* TOPBAR */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.topbar-left h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.live-radar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseRadar 1.8s infinite;
}

@keyframes pulseRadar {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
}

.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-cyan);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.switch-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-refresh {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-cyan);
}

/* ==========================================================
   TAB CONTENTS
   ========================================================== */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.kpi-card.live-card {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(18, 30, 60, 0.7));
  box-shadow: var(--shadow-glow-green);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.kpi-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.live-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.kpi-value-group {
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
}

.kpi-num.highlight-green {
  color: #34d399;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.live-wave-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: waveMotion 2s linear infinite;
}

@keyframes waveMotion {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* DUAL GRID: FEED & QUICK STATS */
.overview-dual-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.glass-panel.full-width {
  width: 100%;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-badge-live {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.btn-panel-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-panel-action:hover {
  background: rgba(6, 182, 212, 0.15);
}

/* LIVE FEED LIST */
.live-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.feed-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  animation: slideDown 0.2s ease-out;
}

.feed-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.feed-icon.search { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.feed-icon.visit { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.feed-icon.ad { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.feed-icon.open { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

.feed-details {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-time {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  flex-shrink: 0;
}

.feed-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* TOP LIST BARS */
.top-list-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.top-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.top-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

.top-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.top-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transition: width 0.5s ease-out;
}

.top-bar-fill.purple {
  background: linear-gradient(90deg, var(--accent-purple), #ec4899);
}

/* ==========================================================
   TABLA DE DISPOSITIVOS & VISITAS
   ========================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-status.live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.offline {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
}

.pill-visits-today {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.device-id-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #f1f5f9;
}

.search-input-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
}

.search-input-pill input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.82rem;
  width: 200px;
}

/* ==========================================================
   SECCIÓN ADMOB & BASE DE DATOS
   ========================================================== */
.ad-units-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.ad-unit-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ad-unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.tag-banner { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tag-interstitial { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tag-appopen { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.ad-unit-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  word-break: break-all;
}

.ad-unit-stat {
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0;
}

.ad-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
}

.ad-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.ad-unit-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* BASE DE DATOS GRID */
.database-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sync-control-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sync-info-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-sync-trigger {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
}

.btn-sync-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.5);
}

.sync-status-banner {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #67e8f9;
  margin-top: 1rem;
}

.db-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.db-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.db-stat-row strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

/* ==========================================================
   ANIMACIONES & RESPONSIVE
   ========================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
  }
  .admin-main {
    margin-left: 220px;
    padding: 1.5rem;
  }
  .overview-dual-grid,
  .database-control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-app {
    flex-direction: column;
  }
  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }
}
