/* Variables de tema y apariencia base */
:root {
  --bg: #f6f7fb;
  --bg-2: #eef2f9;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --border: rgba(13, 27, 42, 0.08);
  --text: #0f172a;
  --muted: #5f6b84;
  --accent: #0f8cf2;
  --accent-2: #0cd3ff;
  --danger: #f05252;
  --success: #0fbf61;
  --shadow: 0 20px 70px rgba(10, 22, 50, 0.16);
  --radius: 18px;
  --font: 'SF Pro Display', 'Inter', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sidebar-width: 260px;
  --sidebar-collapsed: 84px;
}

body.dark-mode {
  --bg: #0b1224;
  --bg-2: #0f1a33;
  --surface: rgba(22, 32, 54, 0.82);
  --surface-strong: #141b2d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6edf7;
  --muted: #9ba8c1;
  --accent: #5ab3ff;
  --accent-2: #7cd7ff;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

/* Fondo general con gradientes suaves y tipografía base */
body {
  background: radial-gradient(120% 120% at 10% 20%, rgba(15, 140, 242, 0.08), transparent),
    radial-gradient(120% 120% at 90% 0%, rgba(12, 211, 255, 0.12), transparent),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  letter-spacing: -0.01em;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Barra lateral con efecto vidrio y gradiente */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, rgba(11, 24, 49, 0.92) 0%, rgba(11, 20, 38, 0.9) 100%);
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.28);
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(12, 211, 255, 0.18), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(15, 140, 242, 0.16), transparent 30%);
  pointer-events: none;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

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

.sidebar .brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.btn-icon {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-link.active {
  background: linear-gradient(135deg, rgba(15, 140, 242, 0.18), rgba(12, 211, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(12, 211, 255, 0.2);
}

.sidebar.collapsed .menu-link span,
.sidebar.collapsed .brand {
  display: none;
}

.sidebar.collapsed .sidebar-footer {
  display: none;
}

.sidebar-collapsed .menu-link span,
.sidebar-collapsed .brand {
  display: none;
}

.sidebar-collapsed .sidebar-footer {
  display: none;
}

.sidebar-footer {
  margin-top: auto;
}

/* Zona principal de contenido */
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Barra superior con título y acciones de usuario */
.topbar {
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 251, 0.88);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

body.dark-mode .topbar {
  background: rgba(11, 18, 36, 0.9);
}

.topbar-title h1 {
  color: var(--text);
  margin-bottom: 0.1rem;
  font-weight: 700;
}

.topbar-title p {
  color: var(--muted);
  margin: 0;
}

.main-content {
  padding: 0 1.5rem 2rem 1.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.user-dropdown .btn-outline-light {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.user-dropdown .btn-outline-light:hover,
.user-dropdown .btn-outline-light:focus {
  background: transparent;
  border: none;
  box-shadow: none;
}

.avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px transparent rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode .avatar-circle {
  background: rgba(19, 27, 47, 0.85);
  color: #eaf1ff;
}

.avatar-circle img,
.avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-large {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  overflow: hidden;
  color: #eaf1ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.card .card-title,
.card .card-header {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: transparent;
  border: none;
}

.hero-panel {
  background: linear-gradient(135deg, rgba(15, 140, 242, 0.16), rgba(12, 211, 255, 0.14));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
}

body.dark-mode .hero-panel {
  background: linear-gradient(135deg, rgba(15, 140, 242, 0.12), rgba(12, 211, 255, 0.1));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-title {
  margin: 0.2rem 0;
  font-weight: 800;
  font-size: 2rem;
}

.hero-sub {
  margin: 0;
  color: #ffffff;
}

/* Chips para patrones de reglas */
.chip-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chip-input-field {
  flex: 1;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.5rem;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.chip-list-selectable {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e5e7eb;
  color: #111827;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chip button {
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.chip button:hover {
  color: #ef4444;
}

.chip-selectable {
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.chip-selectable.neutral {
  background: #e5e7eb;
  color: #111827;
}

.chip-selectable.include {
  background: rgba(25, 135, 84, 0.15);
  color: #0f5132;
  border-color: rgba(25, 135, 84, 0.25);
}

.chip-selectable.exclude {
  background: rgba(220, 53, 69, 0.12);
  color: #842029;
  border-color: rgba(220, 53, 69, 0.3);
}

.analisis-panel.d-none {
  display: none !important;
}

/* Tabla de movimientos: ajustar columnas */
.table-movimientos th:nth-child(3),
.table-movimientos td:nth-child(3) {
  min-width: 260px;
}
.table-movimientos th:nth-child(6),
.table-movimientos td:nth-child(6) {
  min-width: 160px;
  white-space: nowrap;
}

.filter-inline {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
  min-width: 140px;
}

body.dark-mode .filter-chip {
  background: rgba(22, 32, 54, 0.92);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.9));
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

body.dark-mode .stat-card {
  background: linear-gradient(145deg, rgba(24, 32, 54, 0.9), rgba(17, 25, 44, 0.9));
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-card .stat-label {
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.15rem 0;
}

.stat-card .stat-meta {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-green {
  background: linear-gradient(135deg, #10b981, #0fbf61);
  color: #f3fff8;
  box-shadow: 0 16px 38px rgba(16, 185, 129, 0.35);
}

.stat-red {
  background: linear-gradient(135deg, #f43f5e, #f05252);
  color: #fff5f7;
  box-shadow: 0 16px 38px rgba(244, 63, 94, 0.35);
}

.stat-blue {
  background: linear-gradient(135deg, #3b82f6, #0f8cf2);
  color: #f5f9ff;
  box-shadow: 0 16px 38px rgba(59, 130, 246, 0.35);
}

body.dark-mode .stat-green {
  background: linear-gradient(135deg, #0b8c64, #0fa35a);
}

body.dark-mode .stat-red {
  background: linear-gradient(135deg, #c62f52, #e24055);
}

body.dark-mode .stat-blue {
  background: linear-gradient(135deg, #1f6edc, #0c8ae2);
}

.glass-card {
  backdrop-filter: blur(18px);
  background: linear-gradient(140deg, rgba(14, 22, 36, 0.9), rgba(17, 27, 46, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 140, 242, 0.12);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table {
  color: inherit;
  margin-bottom: 0;
}

.table thead {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.table tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

.table tbody tr:hover {
  background: rgba(15, 140, 242, 0.06);
  transform: translateY(-1px);
}

.table.table-contrast {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  color: var(--text);
}

.table.table-contrast thead {
  background: transparent;
  color: #cfd8f5;
}

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

.table.table-contrast tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .table.table-contrast tbody tr {
  background: rgba(19, 27, 47, 0.35);
}

body.dark-mode .table.table-contrast tbody tr:nth-child(odd) {
  background: rgba(19, 27, 47, 0.45);
}

.table.table-contrast td,
.table.table-contrast th {
  border: none;
  padding: 0.85rem 0.9rem;
  color: var(--text);
  background: transparent !important;
}

.table.table-contrast tbody tr:hover {
  background: rgba(15, 140, 242, 0.08);
  transform: none;
}

.table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  appearance: none;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}

.table input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.table input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.table input[type="checkbox"]:hover {
  box-shadow: 0 0 0 4px rgba(15, 140, 242, 0.18);
}

#movimientosSeleccionados {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

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

.table.table-contrast th,
.table.table-contrast td {
  white-space: nowrap;
  vertical-align: middle;
}

.table-elevated {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  background: var(--surface);
  padding: 0.25rem;
}

.table-responsive {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow);
}

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

.form-control,
.form-select,
textarea,
input {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(15, 140, 242, 0.4);
  box-shadow: 0 10px 30px rgba(15, 140, 242, 0.15);
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea {
  background: rgba(24, 32, 54, 0.9);
  color: #eaf1ff;
  border-color: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

body.dark-mode .form-control::placeholder,
body.dark-mode .form-select::placeholder,
body.dark-mode textarea::placeholder {
  color: rgba(234, 241, 255, 0.35);
}

.btn {
  border-radius: 14px;
  border: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 140, 242, 0.3);
}

.btn-primary:hover,
.btn-success:hover {
  transform: translateY(-1px);
}

.btn-outline-light {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}

.badge.bg-warning.text-dark {
  color: #7a4b00 !important;
}

.filter-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
}

.btn-group-periodo .btn {
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
}

.icon-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.icon-option {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-option.active,
.icon-option:hover {
  background: linear-gradient(135deg, rgba(15, 140, 242, 0.12), rgba(12, 211, 255, 0.12));
  color: var(--accent);
  border-color: rgba(15, 140, 242, 0.35);
}

.auth-page .topbar,
.auth-page .sidebar {
  display: none;
}

.auth-page .content-area {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(80% 80% at 30% 30%, rgba(15, 140, 242, 0.15), transparent),
    radial-gradient(65% 70% at 80% 40%, rgba(12, 211, 255, 0.12), transparent),
    var(--bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 440px));
  gap: 2rem;
  align-items: center;
  justify-content: center;
  width: min(1100px, 100%);
}

.auth-hero {
  color: #fff;
  padding: 1rem;
}

.auth-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.auth-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.auth-card {
  max-width: 460px;
  width: 100%;
  padding: 2.75rem;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(19, 27, 47, 0.92), rgba(12, 20, 38, 0.9));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #eaf1ff;
}

.auth-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card .form-label {
  color: rgba(234, 241, 255, 0.9);
}

.auth-card .text-muted {
  color: rgba(234, 241, 255, 0.7) !important;
}

.list-group-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

body.dark-mode .list-group-item {
  background: rgba(22, 32, 54, 0.9);
}

.info-card .text-muted {
  color: var(--muted) !important;
}

.info-card ul li {
  color: var(--text);
}

#configNav .list-group-item {
  border-radius: 12px;
  margin-bottom: 0.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

#configNav .list-group-item.active {
  color: var(--text);
  border-color: rgba(15, 140, 242, 0.3);
  background: rgba(15, 140, 242, 0.1);
  box-shadow: 0 8px 24px rgba(15, 140, 242, 0.18);
}

.table-hover tbody tr:hover > * {
  color: var(--text);
}

.table thead th {
  border: none;
}

.table tbody td {
  border-color: var(--border);
}

body.dark-mode .table-responsive {
  background: var(--surface);
}

body.dark-mode .card-header,
body.dark-mode .card-title {
  color: #d9e4ff;
}

.sidebar-footer .btn {
  width: 100%;
}

.glass-card .form-label,
.glass-card h5,
.glass-card h4 {
  color: #eaf1ff;
}

.glass-card .text-muted {
  color: rgba(234, 241, 255, 0.7) !important;
}

.glass-card .list-group-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-menu.glass-card {
  background: rgba(16, 23, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.dropdown-menu.glass-card .dropdown-item {
  color: #eaf1ff;
}

.dropdown-menu.glass-card .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.list-group-item .text-muted {
  color: rgba(234, 241, 255, 0.75) !important;
}

.list-group-item .fw-semibold {
  color: #eaf1ff;
}

.import-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 140, 242, 0.12), rgba(12, 211, 255, 0.08));
  border: 1px solid rgba(15, 140, 242, 0.12);
  box-shadow: var(--shadow);
}

.import-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(15, 140, 242, 0.1);
  border: 1px solid rgba(15, 140, 242, 0.18);
}

.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0 rgba(15, 140, 242, 0.35);
  animation: pulse-dot 1.3s infinite;
}

.import-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.import-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.import-progress {
  width: 100%;
  height: 8px;
  background: rgba(15, 140, 242, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15, 140, 242, 0.14);
}

.import-progress-bar {
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: shimmer 1.2s infinite linear;
  box-shadow: 0 6px 20px rgba(15, 140, 242, 0.25);
}

@keyframes shimmer {
  0% {
    transform: translateX(-40%);
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 140, 242, 0.35);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(15, 140, 242, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 140, 242, 0);
  }
}

body.dark-mode .import-status {
  background: linear-gradient(135deg, rgba(15, 140, 242, 0.14), rgba(12, 211, 255, 0.12));
  border-color: rgba(12, 211, 255, 0.2);
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    z-index: 999;
    transform: translateX(0);
    height: 100vh;
  }
  .sidebar.hidden {
    transform: translateX(-100%);
  }
  .content-area {
    margin-left: 0;
  }
  .topbar {
    position: sticky;
  }
}
