/* CSS para el Dashboard de Administración */

:root {
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --secondary: #6366f1;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --success: #10b981;
  --success-hover: #059669;
  --error: #ef4444;
  --error-hover: #dc2626;
  --warning: #f59e0b;
  --font-family-title: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --on-primary: #0f172a;
  --on-secondary: #f1f5f9;
  --on-success: #0f172a;
  --on-error: #ffffff;
}

/* Tema Claro (Día) */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-border: rgba(15, 23, 42, 0.08);
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #4f46e5;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --success: #059669;
  --success-hover: #047857;
  --error: #dc2626;
  --error-hover: #b91c1c;
  --warning: #d97706;
  --on-primary: #ffffff;
  --on-secondary: #0f172a;
  --on-success: #ffffff;
  --on-error: #ffffff;
}

[data-theme="light"] .dash-header {
  background-color: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .mod-item {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mod-item-pois-summary {
  background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .highlight-metric {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-color: rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .metric-value {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .highlight-metric .metric-value {
  background: linear-gradient(135deg, #0f172a 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .empty-state {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Reset y Estilos Generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family-body);
  line-height: 1.6;
}

.dash-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family-title);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 100px; /* MD3 pill shape */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--on-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -3px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.btn-success {
  background-color: var(--success);
  color: var(--on-success);
}

.btn-success:hover {
  background-color: var(--success-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-danger {
  background-color: var(--error);
  color: var(--on-error);
}

.btn-danger:hover {
  background-color: var(--error-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: 1.25rem; /* MD3 card shape */
  padding: 2rem;
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.font-sm {
  font-size: 0.85rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo .highlight {
  color: var(--primary);
}

.badge-role {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Header */
.dash-header {
  height: 80px;
  background-color: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
}

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

.user-meta-control {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Main content padding */
.main-content-dash {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ===================== Layout con barra lateral (admin) ===================== */
.admin-shell {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  max-width: 1480px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.admin-sidebar {
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 1rem 0.8rem;
  backdrop-filter: blur(10px);
}
.admin-sidebar-toggle { display: none; }
.admin-tabs { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-nav-group { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.9rem; }
.admin-nav-group:last-child { margin-bottom: 0; }
.admin-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.2rem 0.7rem 0.35rem;
  opacity: 0.8;
}
.admin-sidebar .tab-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-sidebar .tab-btn i { width: 18px; text-align: center; color: var(--text-muted); transition: color .15s; }
.admin-sidebar .tab-btn:hover { background: rgba(127,127,127,0.10); }
.admin-sidebar .tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}
.admin-sidebar .tab-btn.active i { color: #fff; }
.admin-content { flex: 1; min-width: 0; }
.admin-content.main-content-dash { padding-top: 0.5rem; }

/* ===================== Banner de estado de BD ===================== */
.db-status-banner {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  color: var(--text-main);
}
.db-status-banner i { margin-top: 0.15rem; font-size: 1.05rem; }
.db-status-loading { color: var(--text-muted); }
.db-status-ok { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.35); color: #22c55e; }
.db-status-ok b { color: #16a34a; }
.db-status-pending { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.40); color: #d97706; }
.db-status-pending b { color: #b45309; }
.db-status-sub { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
[data-theme="dark"] .db-status-ok { color: #4ade80; }
[data-theme="dark"] .db-status-ok b { color: #86efac; }
[data-theme="dark"] .db-status-pending { color: #fbbf24; }
[data-theme="dark"] .db-status-pending b { color: #fcd34d; }

/* Responsive: barra lateral plegable / superior */
@media (max-width: 920px) {
  .admin-shell { flex-direction: column; gap: 0.8rem; }
  .admin-sidebar {
    width: 100%;
    position: static;
    display: flex;
    flex-direction: column;
  }
  .admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
  }
  .admin-tabs { display: none; }
  .admin-sidebar.open .admin-tabs { display: flex; margin-top: 0.6rem; }
  .admin-content { width: 100%; }
}

/* Metrics Grid Counters */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-box {
  padding: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-metric {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(56, 189, 248, 0.2);
}

.metric-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.metric-value {
  font-family: var(--font-family-title);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-metric .metric-value {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Metrics Sub counters styling */
.metrics-sub-counters {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 0.25rem;
}

.metrics-sub-counters div {
  text-align: center;
}

.metrics-sub-counters strong {
  display: block;
  font-family: var(--font-family-title);
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metrics-sub-counters span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.metrics-sub-counters .divider {
  width: 1px;
  height: 40px;
  background-color: var(--bg-card-border);
}

/* Split Layout */
.admin-split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .admin-split-layout {
    grid-template-columns: 1fr;
  }
}

.mod-queue-container h3, .chart-card h3, .log-card h3 {
  font-family: var(--font-family-title);
  font-size: 1.3rem;
}

/* Moderation Queue list style */
.mod-queue {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mod-item {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.mod-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.mod-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.mod-item-title {
  font-family: var(--font-family-title);
  font-size: 1.15rem;
  font-weight: 700;
}

.mod-item-guide {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  display: block;
  margin-top: 0.1rem;
}

.badge-type {
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.badge-type.pago {
  background-color: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.badge-type.gratuito {
  background-color: rgba(56, 189, 248, 0.2);
  color: #93c5fd;
}

.mod-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* POIs list details inside mod queue item */
.mod-item-pois-summary {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.mod-item-pois-summary h5 {
  font-family: var(--font-family-title);
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 0.25rem;
}

.mod-pois-list {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mod-poi-li {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.mod-poi-li span.poi-type {
  color: var(--primary);
  font-size: 0.75rem;
}

.mod-item-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Chart */
.chart-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Log / Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.dash-table th, .dash-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bg-card-border);
}

.dash-table th {
  font-family: var(--font-family-title);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  border: 2px dashed var(--bg-card-border);
  border-radius: 0.75rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  opacity: 0.7;
}

/* ================= NUEVOS ESTILOS FASE 7: TABS Y GESTIÓN DE ELEMENTOS ================= */

/* Contenedor de Pestañas */
.admin-tabs-container {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--bg-card-border);
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.8rem 1.5rem;
  color: var(--text-muted);
  font-family: var(--font-family-title);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: rgba(56, 189, 248, 0.05);
}

/* Contenido de Pestañas */
.tab-content {
  display: none;
}

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

/* Layout de Gestión de Usuarios */
.admin-users-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .admin-users-layout {
    grid-template-columns: 1fr;
  }
}

.users-card-list {
  padding: 1.5rem;
}

/* Elementos del listado de usuarios */
.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

.badge-role.guia {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

.badge-role.turista {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

/* Catálogo de Tours y Filtros */
.section-header-tours {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tours-filter-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-select {
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  height: 34px;
}

.admin-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Badges de Estado para Tours */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  text-transform: uppercase;
}

.status-badge.borrador {
  background-color: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-badge.pendiente_aprobacion {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

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

/* ================= ESTILOS ADICIONALES FASE 8: MODAL, PAGINACIÓN, ACCIONES EN LOTE ================= */

/* Checkbox estilizado */
.admin-checkbox {
  appearance: none;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--bg-card-border);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  vertical-align: middle;
}

.admin-checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.admin-checkbox:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: #0f172a;
  position: absolute;
}

.admin-checkbox:hover {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(56, 189, 248, 0.3);
}

/* Modal de Rechazo */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  animation: fadeIn 0.3s ease;
}

.admin-modal-content {
  width: 90%;
  max-width: 500px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  to { transform: scale(1); }
}

.admin-textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.admin-textarea:focus {
  border-color: var(--primary);
}

/* Barra Flotante de Acciones en Lote */
.bulk-actions-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: 90%;
  max-width: 750px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--primary);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.25);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bulk-actions-bar.active {
  transform: translateX(-50%) translateY(0);
}

.bulk-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.bulk-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.bulk-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Paginación */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-card-border);
}

.pagination-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--primary);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Formulario de Comisiones */
.settings-card {
  padding: 1.5rem;
}

.admin-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.8rem;
}

.admin-input {
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.admin-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(56, 189, 248, 0.2);
}

/* Badge de Estado para Usuarios */
.status-badge.activo {
  background-color: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.suspendido {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Light Theme Badges and Custom Overrides for high contrast and MD3 consistency */
[data-theme="light"] .status-badge.activo {
  background-color: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

[data-theme="light"] .status-badge.suspendido {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

[data-theme="light"] .badge-role.admin {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

[data-theme="light"] .badge-role.guia {
  background-color: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4338ca;
}

[data-theme="light"] .badge-role.turista {
  background-color: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

[data-theme="light"] .badge-type.pago {
  background-color: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4338ca;
}

[data-theme="light"] .badge-type.gratuito {
  background-color: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0369a1;
}

[data-theme="light"] .status-badge.borrador {
  background-color: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.25);
  color: #475569;
}

[data-theme="light"] .status-badge.pendiente_aprobacion {
  background-color: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.25);
  color: #b45309;
}

[data-theme="light"] .status-badge.publicada {
  background-color: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

[data-theme="light"] .btn-secondary {
  background-color: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text-main);
}

[data-theme="light"] .btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.1);
  border-color: var(--primary);
}


