:root {
  /* Colors */
  --primary: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --primary-shadow: #3730a3;
  
  --secondary: #64748b;
  --secondary-gradient: linear-gradient(135deg, #475569 0%, #334155 100%);
  --secondary-shadow: #1e293b;
  
  --success: #10b981;
  --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --success-shadow: #047857;
  
  --danger: #ef4444;
  --danger-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --danger-shadow: #b91c1c;
  
  /* Backgrounds */
  --bg-color: #f0f4f8; /* Soft cool gray */
  --sidebar-bg: #0b1120; /* Very dark blue */
  --card-bg: #ffffff;
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: #475569;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(255, 255, 255, 0.08);
  --sidebar-accent: #0ea5e9; /* Vibrant Sky */
  
  /* Borders */
  --border-color: #e2e8f0;
  --sidebar-border: #1e293b;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 15px 35px rgba(15, 23, 42, 0.1);
  
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  background-image: linear-gradient(180deg, #0b1120 0%, #172554 100%);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--sidebar-text);
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  z-index: 50;
}

.sidebar-header {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--sidebar-border);
  background: rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo i {
  font-size: 30px;
  color: var(--sidebar-accent);
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.8));
}

.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto; /* Enable scrolling for menu items */
}

/* Opcional: Estilizar scrollbar de la sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-btn i {
  font-size: 24px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-btn:hover {
  background-color: var(--sidebar-active-bg);
  color: #f8fafc;
  transform: translateX(4px);
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(14,165,233,0.15) 0%, rgba(255,255,255,0.05) 100%);
  color: #ffffff;
  border-left: 4px solid var(--sidebar-accent);
  box-shadow: inset 1px 0 10px rgba(14,165,233,0.1);
}

.nav-btn.active i {
  color: var(--sidebar-accent);
  filter: drop-shadow(0 0 8px rgba(14,165,233,0.6));
}

.nav-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 10px 0;
}

.sidebar-footer {
  padding: 16px;
  font-size: 13px;
  color: var(--sidebar-text);
  text-align: center;
  background-color: rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  flex-shrink: 0;
  z-index: 40;
  box-shadow: 0 4px 20px rgba(15,23,42,0.03);
}

.topbar h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.2);
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}

/* Sections */
.seccion {
  display: none;
  animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 1100px;
  margin: 0 auto;
}

.seccion.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.oculto {
  display: none !important;
}

/* Modo Visor (Solo Lectura) */
body.viewer-mode .admin-only {
  pointer-events: none !important;
  opacity: 0.6 !important;
  filter: grayscale(20%);
}

.section-header {
  margin-bottom: 32px;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 4px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0.8;
}

.table-card {
  padding: 0;
}
.table-card::before {
  background: var(--sidebar-accent);
}

/* Forms: "Donde se pone la información" */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px;
}

.form-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.justify-end { justify-content: flex-end; }
.mt-4 { margin-top: 32px; }

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
  color: #0f172a;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-form input:hover,
.modern-form select:hover {
  background-color: #e2e8f0;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15), inset 0 2px 4px rgba(15, 23, 42, 0.01);
  transform: translateY(-2px);
}

/* 3D Buttons "Alto Relieve" */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  top: 0;
}

.btn i {
  font-size: 22px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 6px 0 var(--primary-shadow), 0 10px 20px rgba(79,70,229,0.3);
}

.btn-primary:hover {
  top: 2px;
  box-shadow: 0 4px 0 var(--primary-shadow), 0 8px 15px rgba(79,70,229,0.4);
  filter: brightness(1.1);
}

.btn-primary:active {
  top: 6px;
  box-shadow: 0 0 0 var(--primary-shadow), 0 2px 5px rgba(79,70,229,0.4);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: white;
  box-shadow: 0 6px 0 var(--secondary-shadow), 0 10px 20px rgba(71,85,105,0.3);
}

.btn-secondary:hover {
  top: 2px;
  box-shadow: 0 4px 0 var(--secondary-shadow), 0 8px 15px rgba(71,85,105,0.4);
  filter: brightness(1.1);
}

.btn-secondary:active {
  top: 6px;
  box-shadow: 0 0 0 var(--secondary-shadow), 0 2px 5px rgba(71,85,105,0.4);
}

.btn-success {
  background: var(--success-gradient);
  color: white;
  box-shadow: 0 6px 0 var(--success-shadow), 0 10px 20px rgba(16,185,129,0.3);
}

.btn-success:hover {
  top: 2px;
  box-shadow: 0 4px 0 var(--success-shadow), 0 8px 15px rgba(16,185,129,0.4);
  filter: brightness(1.1);
}

.btn-success:active {
  top: 6px;
  box-shadow: 0 0 0 var(--success-shadow), 0 2px 5px rgba(16,185,129,0.4);
}

.btn-danger {
  background: var(--danger-gradient);
  color: white;
  box-shadow: 0 6px 0 var(--danger-shadow), 0 10px 20px rgba(239,68,68,0.3);
}

.btn-danger:hover {
  top: 2px;
  box-shadow: 0 4px 0 var(--danger-shadow), 0 8px 15px rgba(239,68,68,0.4);
  filter: brightness(1.1);
}

.btn-danger:active {
  top: 6px;
  box-shadow: 0 0 0 var(--danger-shadow), 0 2px 5px rgba(239,68,68,0.4);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--primary-shadow), 0 6px 12px rgba(79,70,229,0.3);
}
.btn-sm.btn-primary { box-shadow: 0 4px 0 var(--primary-shadow); }
.btn-sm.btn-primary:hover { top: 2px; box-shadow: 0 2px 0 var(--primary-shadow); }
.btn-sm.btn-primary:active { top: 4px; box-shadow: 0 0 0 var(--primary-shadow); }

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 8px 16px;
  font-weight: 700;
  box-shadow: none !important;
  top: 0 !important;
}

.btn-text:hover {
  color: var(--primary-hover);
  background: rgba(79, 70, 229, 0.05);
}

.form-actions {
  display: flex;
  gap: 20px;
}

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

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.modern-table th {
  background-color: #f8fafc;
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #e2e8f0;
}

.modern-table td {
  padding: 20px 24px;
  font-size: 15px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
  transition: background-color 0.2s;
}

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

.acciones {
  display: flex;
  gap: 12px;
}

/* Status Badges */
span.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  background-color: var(--card-bg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(248, 250, 252, 0.8);
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}

.icon-btn {
  background: #f1f5f9;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.modal-body {
  padding: 36px;
  overflow-y: auto;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}

.saldo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #b91c1c;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 18px;
  border: 2px solid #fca5a5;
  box-shadow: 0 4px 10px rgba(239,68,68,0.15);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 24px;
}

.input-icon-wrapper input {
  padding-left: 56px !important;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 36px;
}

/* Informes */
.stats-card {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 10px 20px rgba(79,70,229,0.3);
}

.stat-info h3 {
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 8px;
}

#resumenVentas {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

/* Remisiones */
.lineas-container {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px dashed #cbd5e1;
}

.lineas-container h4 {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
}

.lineas-remision {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.subsection-title {
  font-size: 24px;
  font-weight: 800;
  margin: 48px 0 24px;
  color: #0f172a;
}

/* Backup */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.backup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.backup-icon {
  width: 100px;
  height: 100px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 32px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.backup-card.export .backup-icon {
  background: var(--primary-gradient);
  color: white;
}

.backup-card.import .backup-icon {
  background: var(--secondary-gradient);
  color: white;
}

.backup-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #0f172a;
}

.backup-card p {
  color: #475569;
  margin-bottom: 40px;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 500;
}

/* Dashboard & KPIs */
.dashboard-container {
    color: var(--text-main);
}
.kpi-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.kpi-card {
    flex: 1;
    min-width: 200px;
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.kpi-card.ganancia { border-top-color: var(--success); }
.kpi-card.gasto { border-top-color: var(--danger); }
.kpi-card.neto { border-top-color: var(--sidebar-accent); }
.kpi-card h3 { 
    margin: 0; 
    font-size: 14px; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}
.kpi-card p { 
    margin: 12px 0 0; 
    font-size: 28px; 
    font-weight: 800; 
    color: var(--text-main);
}
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}
.chart-container {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 380px; /* Evita que el gráfico se extienda demasiado */
    display: flex;
    flex-direction: column;
}
.chart-container canvas {
    flex: 1;
    min-height: 0;
}
.chart-container h4 {
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 800;
    text-align: center;
}

/* Login Modal Specific */
#modalLogin {
  background: linear-gradient(135deg, #0b1120 0%, #1e1b4b 100%);
  background-image: radial-gradient(circle at 50% -20%, rgba(14,165,233,0.3) 0%, transparent 50%),
                    linear-gradient(135deg, #0b1120 0%, #1e1b4b 100%);
}
#modalLogin .modal-content {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* Premium Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 2px solid transparent;
  border-radius: var(--radius-sm, 12px);
  padding: 0 20px;
  margin: 20px 24px 0 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
  background-color: #ffffff;
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15), inset 0 2px 4px rgba(15, 23, 42, 0.01);
  transform: translateY(-2px);
}

.search-bar i {
  color: var(--text-muted, #94a3b8);
  font-size: 20px;
  margin-right: 12px;
  transition: color 0.3s ease;
}

.search-bar:focus-within i {
  color: var(--primary, #4f46e5);
}

.search-bar input {
  width: 100%;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--text, #1e293b);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted, #94a3b8);
}

/* Responsive */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 60;
  }
  
  .sidebar-header {
    justify-content: center;
    padding: 12px;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .topbar {
    padding: 16px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 20px;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
  }

  .status-badge {
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .content-area {
    padding: 16px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .card {
    padding: 20px;
  }
  
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group {
    min-width: 100%;
  }

  .modern-form input,
  .modern-form select,
  .modern-form textarea {
    padding: 12px 16px;
  }

  .btn {
    width: 100%;
    padding: 12px;
  }
}

/* Premium Pagination */
.premium-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  margin-top: 10px;
}
.pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}
.pag-btn:not([disabled]):hover {
  background: #f8fafc;
  color: var(--primary);
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}
.pag-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  transform: scale(1.05);
}
.pag-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
}
.pag-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  font-weight: 700;
}

