/* gymadmingenial/css/styles.css */
/* Sistema de Administración de Gimnasio - GymAdmin Genial Venezuela */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #38bdf8;
  --primary-bg: #e0f2fe;
  
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: #0284c7;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  
  --topbar-bg: #1e293b;
  --main-bg: #f1f5f9;
  --card-bg: #ffffff;
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --color-red: #ef4444;
  --color-purple: #8b5cf6;
  --color-green: #22c55e;
  --color-yellow: #f59e0b;
  --color-cyan: #06b6d4;
  
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--main-bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  transition: var(--transition);
  z-index: 100;
}

.sidebar-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.sidebar-title h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-title span {
  font-size: 11px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  list-style: none;
  padding: 16px 0;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-item {
  margin: 4px 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-link .link-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-link i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.sidebar-link:hover {
  background-color: var(--sidebar-hover);
  color: #fff;
}

.sidebar-link.active {
  background-color: var(--sidebar-active);
  color: var(--sidebar-text-active);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* SIDEBAR FOOTER (QR & APK) */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-qr-box img, .sidebar-qr-box canvas {
  width: 110px;
  height: 110px;
  display: block;
  margin: 0 auto;
}

.sidebar-btn-apk {
  width: 100%;
  padding: 8px;
  background: #475569;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: var(--transition);
}

.sidebar-btn-apk:hover {
  background: #334155;
}

.sidebar-btn-qr {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-btn-qr:hover {
  background: var(--primary-dark);
}

/* CONTENIDO PRINCIPAL */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  height: 100vh;
}

/* TOPBAR */
.topbar {
  height: 64px;
  background-color: var(--topbar-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* BANNER DE TASAS DE CAMBIO (MULTIMONEDA VENEZUELA) */
.rates-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.rate-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.rate-badge strong {
  color: #38bdf8;
  font-weight: 600;
}

.rate-badge.bcv strong {
  color: #4ade80;
}

.rate-badge.paralelo strong {
  color: #facc15;
}

.rate-badge.cop strong {
  color: #f472b6;
}

.rate-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

/* PERFIL DE USUARIO EN HEADER */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.user-profile-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  background-color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-info {
  text-align: left;
  line-height: 1.2;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.user-role {
  font-size: 11px;
  color: var(--sidebar-text);
  text-transform: capitalize;
}

/* USER DROPDOWN */
.user-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  background: #ffffff;
  color: var(--text-dark);
  min-width: 200px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  z-index: 110;
}

.user-dropdown.show {
  display: flex;
}

.user-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.user-dropdown-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.user-dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.user-dropdown-item.logout {
  color: var(--color-red);
  border-top: 1px solid var(--border-color);
}

.user-dropdown-item.logout:hover {
  background-color: #fef2f2;
}

/* CONTENEDOR DE VISTAS */
.view-container {
  padding: 24px;
  flex-grow: 1;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PANEL DE CONTROL (DASHBOARD)
   ========================================================================== */

.page-title-banner {
  text-align: center;
  margin-bottom: 24px;
}

.page-title-banner h1 {
  font-size: 26px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* TARJETAS DE ESTADÍSTICAS */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  color: #fff;
  padding: 22px 16px;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.stat-card.red {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.stat-card.purple {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.stat-card.green {
  background: linear-gradient(135deg, #84cc16, #22c55e);
}

.stat-card.yellow {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.15' d='M0,192L48,176C96,160,192,128,288,138.7C384,149,480,203,576,202.7C672,203,768,149,864,133.3C960,117,1056,139,1152,144C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.stat-card-number {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* CAJA DE REGISTRO DE ASISTENCIA RÁPIDA */
.quick-checkin-box {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 36px 30px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  text-align: center;
  margin-bottom: 24px;
}

.quick-checkin-title {
  font-size: 24px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 24px;
}

.quick-checkin-form {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.cedula-input-group {
  display: flex;
  flex-grow: 1;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
}

.cedula-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.cedula-type-select {
  border: none;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  border-right: 1px solid #cbd5e1;
  outline: none;
  cursor: pointer;
}

.cedula-input {
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  width: 100%;
  outline: none;
  color: #1e293b;
}

.btn-checkin {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-checkin:hover {
  background: var(--primary-dark);
}

.checkin-feedback {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 8px;
  display: none;
  font-size: 15px;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}

.checkin-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.checkin-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* WIDGETS LATERALES DERECHOS */
.dashboard-side-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-widget-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.side-widget-header {
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-widget-header.blue {
  background: #0284c7;
}

.side-widget-header.cyan {
  background: #0ea5e9;
}

.side-widget-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}

.widget-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--transition);
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-item:hover {
  background: #f8fafc;
}

.widget-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
}

.widget-user-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.widget-user-info p {
  font-size: 11px;
  color: #64748b;
}

.widget-item-right {
  text-align: right;
}

.widget-badge-time {
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  display: block;
}

.widget-amount {
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
}

.widget-amount-bs {
  font-size: 11px;
  color: #64748b;
}

.widget-empty {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================================
   TABLAS Y MÓDULOS DE GESTIÓN
   ========================================================================== */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #64748b;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #475569;
}

.btn-success {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-success:hover {
  background: #15803d;
}

/* CONTENEDOR DE TABLA */
.table-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.table-toolbar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  width: 300px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
  vertical-align: middle;
}

.custom-table tr:hover td {
  background-color: #f8fafc;
}

/* BADGES */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.pagada, .status-badge.activo, .status-badge.activa {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.deuda, .status-badge.vencido, .status-badge.inactivo {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.admin {
  background: #e0e7ff;
  color: #4338ca;
}

.status-badge.vendedor {
  background: #fef3c7;
  color: #b45309;
}

/* BOTONES DE ACCIÓN */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.btn-icon.view { background: #e0f2fe; color: #0369a1; }
.btn-icon.view:hover { background: #bae6fd; }

.btn-icon.pay { background: #dcfce7; color: #15803d; }
.btn-icon.pay:hover { background: #bbf7d0; }

.btn-icon.renew { background: #ffedd5; color: #c2410c; }
.btn-icon.renew:hover { background: #fed7aa; }

.btn-icon.edit { background: #fef3c7; color: #b45309; }
.btn-icon.edit:hover { background: #fde68a; }

.btn-icon.delete { background: #fee2e2; color: #b91c1c; }
.btn-icon.delete:hover { background: #fecaca; }

/* ==========================================================================
   MODALES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.show {
  display: flex !important;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--box-shadow-lg);
  animation: modalScale 0.2s ease;
}

.modal-card.large {
  max-width: 850px;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* FORMULARIOS */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.form-control {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  color: #1e293b;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* CALCULADORA DE CONVERSIÓN EN PAGO */
.currency-converter-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 14px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 13px;
}

.currency-converter-box strong {
  color: #166534;
}

/* CALENDARIO DE ASISTENCIAS EN MODAL DETALLES */
.calendar-widget {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-top: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar-day-header {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 6px 0;
}

.calendar-day {
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: #f8fafc;
  color: #334155;
  position: relative;
}

.calendar-day.empty {
  background: transparent;
}

.calendar-day.attended {
  background: #22c55e;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}

.calendar-day.attended::after {
  content: attr(data-time);
  font-size: 8px;
  position: absolute;
  bottom: 2px;
  opacity: 0.9;
}

/* ==========================================================================
   PORTAL MÓVIL DEL CLIENTE (ESCÁNER QR Y MI ASISTENCIA)
   ========================================================================== */

.client-portal-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

.client-portal-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.client-portal-nav {
  display: flex;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 4px;
  margin-bottom: 20px;
}

.client-portal-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.client-portal-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.qr-scanner-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  border: 2px dashed #cbd5e1;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    height: 100vh;
  }
  .sidebar.show {
    left: 0;
  }
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }
  .rates-ticker {
    display: none;
  }
  .quick-checkin-form {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}
