/* ============================================================
   Billarnet Café — Admin Panel CSS
   Dark mode · Bebas Neue + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:    #8DC63F;
  --primary-d:  #6fa32e;
  --primary-l:  #a8d85a;
  --dark:       #0A0A0A;
  --charcoal:   #404040;
  --surface:    #141414;
  --surface2:   #1c1c1c;
  --surface3:   #242424;
  --border:     #2a2a2a;
  --offwhite:   #F5F5F5;
  --text:       #e0e0e0;
  --text-muted: #888;
  --gold:       #C8A96E;
  --purple:     #6B3FA0;
  --danger:     #e05252;
  --warning:    #e0a44a;
  --success:    #8DC63F;
  --info:       #4a90d9;

  --sidebar-w:  260px;
  --topbar-h:   60px;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --transition: .2s ease;
}

/* ── Reset mínimo ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-l); }

img { max-width: 100%; display: block; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--charcoal); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(141,198,63,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(107,63,160,.06) 0%, transparent 60%);
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

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

.login-logo img {
  height: 72px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 16px rgba(141,198,63,.3));
}

.login-logo h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: .08em;
  color: var(--offwhite);
}

.login-logo p {
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Form elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  padding: .65rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(141,198,63,.15);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

select option { background: var(--surface2); }

textarea { resize: vertical; min-height: 100px; }

.input-icon {
  position: relative;
}
.input-icon input {
  padding-left: 2.6rem;
}
.input-icon .icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  padding: .65rem 1.35rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .02em;
}

.btn-primary {
  background: var(--primary);
  color: #0A0A0A;
}
.btn-primary:hover {
  background: var(--primary-l);
  color: #0A0A0A;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(141,198,63,.35);
}

.btn-secondary {
  background: var(--surface3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #c94040;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #0A0A0A;
}
.btn-gold:hover {
  background: #d9bb82;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: .78rem;
  padding: .4rem .9rem;
}

.btn-lg {
  font-size: 1rem;
  padding: .85rem 1.75rem;
}

.btn-block { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  border-left: 3px solid transparent;
}

.alert--success { background: rgba(141,198,63,.12); border-color: var(--success); color: var(--primary-l); }
.alert--error   { background: rgba(224,82,82,.12);  border-color: var(--danger);  color: #f08080; }
.alert--warning { background: rgba(224,164,74,.12); border-color: var(--warning); color: #e8bb6e; }
.alert--info    { background: rgba(74,144,217,.12); border-color: var(--info);    color: #7cb8f0; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
}

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

.sidebar-header img {
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(141,198,63,.3));
}

.sidebar-header .site-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: .06em;
  color: var(--offwhite);
  line-height: 1.1;
}

.sidebar-header .site-sub {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.nav-section {
  margin-bottom: .25rem;
}

.nav-section-title {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  padding: .9rem 1.25rem .35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .62rem 1.25rem;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.nav-item:hover {
  color: var(--offwhite);
  background: var(--surface2);
}

.nav-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(141,198,63,.07);
}

.nav-item .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
}

.user-mini-info { flex: 1; min-width: 0; }
.user-mini-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--offwhite);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-mini-role {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .3rem;
  border-radius: var(--radius);
  transition: color var(--transition);
  font-size: 1rem;
}
.logout-btn:hover { color: var(--danger); }

/* ── Main area ─────────────────────────────────────────────── */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: .3rem;
}

.topbar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: .06em;
  color: var(--offwhite);
}

.topbar-breadcrumb {
  font-size: .78rem;
  color: var(--text-muted);
  margin-left: .5rem;
}

.topbar-breadcrumb span { color: var(--primary); }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.topbar-notif {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.topbar-notif:hover { border-color: var(--primary); color: var(--primary); }
.topbar-notif .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Page content ──────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 1.75rem;
  max-width: 1400px;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.page-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: .06em;
  color: var(--offwhite);
}

.page-header p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

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

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--offwhite);
}

/* ── Stat cards ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--stat-color, var(--primary));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.stat-card:hover {
  border-color: var(--stat-color, var(--primary));
  transform: translateY(-2px);
}

.stat-icon {
  width: 46px;
  height: 46px;
  background: rgba(var(--stat-rgb, 141,198,63), .12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--stat-color, var(--primary));
}

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: .04em;
  color: var(--offwhite);
  line-height: 1;
}

.stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .2rem;
}

.stat-trend {
  font-size: .72rem;
  font-weight: 600;
  margin-top: .25rem;
}
.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* Variantes de color para stat cards */
.stat-card.gold   { --stat-color: var(--gold);   --stat-rgb: 200,169,110; }
.stat-card.purple { --stat-color: var(--purple);  --stat-rgb: 107,63,160; }
.stat-card.danger { --stat-color: var(--danger);  --stat-rgb: 224,82,82; }
.stat-card.info   { --stat-color: var(--info);    --stat-rgb: 74,144,217; }

/* ── Dashboard grid ────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

thead th {
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: var(--surface2); }

/* ── Badges / pills ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 20px;
}

.badge-success { background: rgba(141,198,63,.15); color: var(--primary-l); }
.badge-danger  { background: rgba(224,82,82,.15);  color: #f08080; }
.badge-warning { background: rgba(224,164,74,.15); color: #e8bb6e; }
.badge-info    { background: rgba(74,144,217,.15); color: #7cb8f0; }
.badge-muted   { background: var(--surface3);      color: var(--text-muted); }
.badge-gold    { background: rgba(200,169,110,.15); color: var(--gold); }
.badge-purple  { background: rgba(107,63,160,.2);  color: #a87ed8; }

/* ── Activity feed ─────────────────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; gap: 0; }

.activity-item {
  display: flex;
  gap: .85rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: .45rem;
  flex-shrink: 0;
}

.activity-text { font-size: .85rem; color: var(--text); line-height: 1.4; }
.activity-time { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }

/* ── Quick actions ─────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  transition: all var(--transition);
}

.quick-action .icon { font-size: 1.4rem; color: var(--primary); }

.quick-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(141,198,63,.07);
  transform: translateY(-2px);
}

/* ── Status indicator (abierto/cerrado) ────────────────────── */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
}
.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.status-dot.open   { color: var(--success); }
.status-dot.closed { color: var(--danger); }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab {
  padding: .7rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab:hover { color: var(--offwhite); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.page-link {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .6rem;
  border-radius: var(--radius);
  font-size: .825rem;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #0A0A0A; }
.page-link.disabled { opacity: .35; pointer-events: none; }

/* ── Modales ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition);
  box-shadow: var(--shadow);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: .06em; color: var(--offwhite); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; padding: .25rem; border-radius: var(--radius); transition: color var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }

/* ── Drag & drop upload area ───────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
  cursor: pointer;
  transition: all var(--transition);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(141,198,63,.05);
  color: var(--primary);
}
.drop-zone .drop-icon { font-size: 2rem; margin-bottom: .75rem; color: var(--primary); }

/* ── Toggle switch ─────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
}
.toggle {
  position: relative;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  border-radius: 22px;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Misc utilities ────────────────────────────────────────── */
.text-muted    { color: var(--text-muted) !important; }
.text-primary  { color: var(--primary) !important; }
.text-danger   { color: var(--danger) !important; }
.text-gold     { color: var(--gold) !important; }
.text-sm       { font-size: .8rem !important; }
.text-xs       { font-size: .72rem !important; }
.font-bebas    { font-family: 'Bebas Neue', sans-serif; letter-spacing: .06em; }

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.items-center  { align-items: center; }
.gap-1         { gap: .5rem; }
.gap-2         { gap: 1rem; }
.ml-auto       { margin-left: auto; }
.mt-1          { margin-top: .5rem; }
.mt-2          { margin-top: 1rem; }
.mb-1          { margin-bottom: .5rem; }
.mb-2          { margin-bottom: 1rem; }

.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; }
.empty-state p { font-size: .875rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.6);
  }
  .main-area { margin-left: 0; }
  .topbar-hamburger { display: flex; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .login-card { padding: 1.75rem 1.25rem; }
  .quick-actions { grid-template-columns: 1fr; }
}

/* ── Animaciones ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .3s ease forwards; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.pulse { animation: pulse 1.5s ease-in-out infinite; }
