:root {
  --nexus-gold: #e3a127;
  --nexus-gold-light: #f0c060;
  --nexus-gold-dark: #c88a1a;
  --nexus-blue-deep: #0d3a6e;
  --nexus-blue: #1a5a9e;
  --nexus-blue-mid: #2563b5;
  --nexus-blue-light: #4a90d9;
  --nexus-blue-shine: #6bb0f0;
  --nexus-bg: #eef3f9;
  --nexus-surface: #ffffff;
  --nexus-text: #1e3a5f;
  --nexus-text-muted: #5a7184;
  --nexus-border: rgba(26, 90, 158, 0.15);
  --nexus-metallic-blue: linear-gradient(160deg, #0d3a6e 0%, #1a5a9e 35%, #4a90d9 50%, #2563b5 65%, #0d3a6e 100%);
  --nexus-metallic-navbar: #334155;
  --nexus-metallic-sidenav: linear-gradient(180deg, #0d3a6e 0%, #1a5a9e 30%, #2563b5 60%, #0d3a6e 100%);
  --nexus-metallic-footer: linear-gradient(90deg, #1a5a9e 0%, #2563b5 40%, var(--nexus-gold) 100%);
  --nexus-success: #1a8f3a;
  --nexus-sidenav-light-bg: #ffffff;
  --nexus-sidenav-light-text: #334155;
  --nexus-sidenav-light-muted: #94a3b8;
  --nexus-footer-light-bg: #f1f5f9;
  --nexus-footer-light-text: #475569;
}

body.admin-light-theme {
  background-color: var(--nexus-bg) !important;
  color: var(--nexus-text);
}

body.admin-light-theme .layout-2 .layout-content {
  background-color: var(--nexus-bg);
}

body.admin-light-theme .layout-content.imgparcialesV2 {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(26, 90, 158, 0.02) 0px,
    rgba(26, 90, 158, 0.04) 1px,
    transparent 1px,
    transparent 12px
  );
}

body.admin-light-theme .container-fluid.flex-grow-1.container-p-y {
  color: var(--nexus-text) !important;
}

body.admin-light-theme h1,
body.admin-light-theme h2,
body.admin-light-theme h3,
body.admin-light-theme h4,
body.admin-light-theme h5,
body.admin-light-theme h6,
body.admin-light-theme .card-header {
  color: var(--nexus-text);
}

body.admin-light-theme .text-muted {
  color: var(--nexus-text-muted) !important;
}

body.admin-light-theme .breadcrumb-item a {
  color: var(--nexus-blue);
}

body.admin-light-theme .breadcrumb-item.active {
  color: var(--nexus-text-muted);
}

/* ============================================
   SIDEBAR FLOTANTE MODERNO
   ============================================ */

/* Main sidebar container - floating card */
body.admin-light-theme .sidenav.bg-dark,
body.admin-light-theme .sidenav.bg-nexus {
  background: var(--nexus-sidenav-light-bg) !important;
  color: var(--nexus-sidenav-light-text);
  border-right: none;
  box-shadow: 4px 8px 32px rgba(0, 0, 0, 0.08);
}

body.admin-light-theme .layout-fixed .layout-sidenav {
  top: 12px;
  bottom: 12px;
  height: calc(100% - 24px);
  border-radius: 0 18px 18px 0;
}

body.admin-light-theme .layout-fixed.layout-collapsed .layout-sidenav:not(:hover) {
  border-radius: 0 14px 14px 0;
}

/* Scroll invisible (solo contenido, sin barra visible) */
body.admin-light-theme .sidenav-vertical {
  overflow-y: auto !important;
  scrollbar-width: none;
}

body.admin-light-theme .sidenav-vertical::-webkit-scrollbar {
  display: none;
}

/* --- Menu links - pill shape --- */
body.admin-light-theme .sidenav.bg-dark .sidenav-link,
body.admin-light-theme .sidenav.bg-nexus .sidenav-link {
  color: var(--nexus-sidenav-light-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  margin: 0.125rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 450;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

body.admin-light-theme .sidenav.bg-dark .sidenav-link:hover,
body.admin-light-theme .sidenav.bg-dark .sidenav-link:focus,
body.admin-light-theme .sidenav.bg-nexus .sidenav-link:hover,
body.admin-light-theme .sidenav.bg-nexus .sidenav-link:focus {
  background: rgba(0, 0, 0, 0.05);
  color: var(--nexus-text);
  transform: translateX(4px);
}

/* --- Active item - pill with gold accent --- */
body.admin-light-theme .sidenav.bg-dark .sidenav-item.active > .sidenav-link:not(.sidenav-toggle),
body.admin-light-theme .sidenav.bg-nexus .sidenav-item.active > .sidenav-link:not(.sidenav-toggle) {
  background: linear-gradient(135deg, rgba(227, 161, 39, 0.15) 0%, rgba(227, 161, 39, 0.05) 100%);
  color: var(--nexus-gold-dark);
  font-weight: 600;
  border-left: none;
  box-shadow: inset 0 0 0 1px rgba(227, 161, 39, 0.15);
}

body.admin-light-theme .sidenav.bg-dark .sidenav-item.active > .sidenav-link:not(.sidenav-toggle)::before,
body.admin-light-theme .sidenav.bg-nexus .sidenav-item.active > .sidenav-link:not(.sidenav-toggle)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: radial-gradient(ellipse at left center, rgba(227, 161, 39, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Icons with circular bg on hover/active --- */
body.admin-light-theme .sidenav.bg-dark .sidenav-icon,
body.admin-light-theme .sidenav.bg-nexus .sidenav-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--nexus-sidenav-light-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
  border-radius: 50%;
}

body.admin-light-theme .sidenav.bg-dark .sidenav-link:hover .sidenav-icon,
body.admin-light-theme .sidenav.bg-nexus .sidenav-link:hover .sidenav-icon {
  color: var(--nexus-blue);
  background: rgba(26, 90, 158, 0.08);
}

body.admin-light-theme .sidenav.bg-dark .sidenav-item.active .sidenav-icon,
body.admin-light-theme .sidenav.bg-nexus .sidenav-item.active .sidenav-icon {
  color: var(--nexus-gold-dark);
  background: rgba(227, 161, 39, 0.12);
}

/* --- Headers --- */
body.admin-light-theme .sidenav.bg-dark .sidenav-header,
body.admin-light-theme .sidenav.bg-nexus .sidenav-header {
  color: var(--nexus-sidenav-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1.25rem 1.5rem 0.375rem;
}

/* --- Dividers --- */
body.admin-light-theme .sidenav.bg-dark .sidenav-divider,
body.admin-light-theme .sidenav.bg-nexus .sidenav-divider {
  border-color: rgba(0, 0, 0, 0.05);
  margin: 0.5rem 1rem;
}

/* --- Menu container --- */
body.admin-light-theme .sidenav .sidenav-inner {
  padding: 0.375rem 0 !important;
}

/* --- Submenu --- */
body.admin-light-theme .sidenav .sidenav-menu {
  padding-left: 2.5rem !important;
}

body.admin-light-theme .sidenav .sidenav-toggle::after {
  opacity: 0.4;
  transition: transform 0.25s ease;
}

body.admin-light-theme .sidenav .sidenav-item.open > .sidenav-toggle::after {
  transform: rotate(90deg);
}

/* --- Brand area --- */
body.admin-light-theme .sidenav .app-brand.demo {
  height: 72px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 0.125rem;
}

body.admin-light-theme .sidenav .app-brand-link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
  text-decoration: none;
}

body.admin-light-theme .sidenav .app-brand-link:hover .app-brand-text {
  color: var(--nexus-blue);
}

body.admin-light-theme .sidenav .app-brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-sizing: border-box;
  line-height: 0;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--nexus-gold) 0%, var(--nexus-gold-dark) 100%) !important;
  box-shadow: 0 3px 10px rgba(227, 161, 39, 0.3);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body.admin-light-theme .sidenav .app-brand-logo:hover {
  box-shadow: 0 6px 20px rgba(227, 161, 39, 0.4);
  transform: scale(1.05);
}

body.admin-light-theme .sidenav .app-brand-logo img {
  width: 1.625rem;
  height: 1.625rem;
  object-fit: contain;
  display: block;
}

body.admin-light-theme .sidenav .app-brand-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0 !important;
}

body.admin-light-theme .sidenav .layout-sidenav-toggle {
  color: var(--nexus-sidenav-light-muted);
  font-size: 1.25rem;
  opacity: 0.4;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

body.admin-light-theme .sidenav .layout-sidenav-toggle:hover {
  opacity: 1;
  color: var(--nexus-text);
  transform: scale(1.1);
}

body.admin-light-theme #layout-navbar .app-brand-logo {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--nexus-gold) 0%, var(--nexus-gold-dark) 100%) !important;
}

body.admin-light-theme #layout-navbar .app-brand-logo img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

body.admin-light-theme #layout-navbar .app-brand.demo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.admin-light-theme #layout-navbar .app-brand-text {
  margin-left: 0 !important;
  color: #fff !important;
  font-weight: 600;
}

/* Sidenav colapsado */
body.admin-light-theme .layout-collapsed:not(.layout-offcanvas):not(.layout-fixed-offcanvas) .layout-sidenav:not(:hover) .app-brand-link .app-brand-text {
  display: none;
}

body.admin-light-theme .layout-collapsed:not(.layout-offcanvas):not(.layout-fixed-offcanvas) .layout-sidenav:not(:hover) .app-brand-link {
  flex: 0;
  justify-content: center;
}

body.admin-light-theme .layout-collapsed:not(.layout-offcanvas):not(.layout-fixed-offcanvas) .layout-sidenav:not(:hover) .app-brand .layout-sidenav-toggle {
  display: none;
}

body.admin-light-theme .layout-collapsed:not(.layout-offcanvas):not(.layout-fixed-offcanvas) .layout-sidenav:not(:hover) .sidenav-link div,
body.admin-light-theme .layout-collapsed:not(.layout-offcanvas):not(.layout-fixed-offcanvas) .layout-sidenav:not(:hover) .sidenav-header,
body.admin-light-theme .layout-collapsed:not(.layout-offcanvas):not(.layout-fixed-offcanvas) .layout-sidenav:not(:hover) .sidenav-divider {
  display: none;
}

body.admin-light-theme .layout-collapsed:not(.layout-offcanvas):not(.layout-fixed-offcanvas) .layout-sidenav:not(:hover) .sidenav-link {
  justify-content: center;
  padding: 0.7rem;
  border-radius: 50px;
  margin: 0.125rem 0.5rem;
}

body.admin-light-theme .app-brand-logo {
  background: linear-gradient(145deg, var(--nexus-gold) 0%, var(--nexus-gold-dark) 100%) !important;
  color: #fff;
}

/* Navbar */
body.admin-light-theme #layout-navbar {
  background: var(--nexus-metallic-navbar) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body.admin-light-theme #layout-navbar .nav-link,
body.admin-light-theme #layout-navbar .navbar-brand,
body.admin-light-theme #layout-navbar .navbar-text {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.admin-light-theme #layout-navbar .nav-link:hover {
  color: #e2e8f0 !important;
}

body.admin-light-theme #layout-navbar .navbar-toggler-icon {
  filter: brightness(10);
}

body.admin-light-theme #layout-navbar .line-height-1 {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Footer */
body.admin-light-theme .layout-footer.footer.bg-white {
  background: var(--nexus-footer-light-bg) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.admin-light-theme .layout-footer .footer-text {
  color: var(--nexus-footer-light-text) !important;
}

/* Cards */
body.admin-light-theme .card {
  background-color: var(--nexus-surface);
  border: 1px solid var(--nexus-border);
  box-shadow: 0 4px 20px rgba(26, 90, 158, 0.08) !important;
}

body.admin-light-theme .card .text-white {
  color: var(--nexus-text) !important;
}

/* Dashboard TradingView widgets - responsive height */
body.admin-light-theme .tradingview-widget-container {
  width: 100% !important;
}

body.admin-light-theme .tradingview-widget-container iframe,
body.admin-light-theme .tradingview-widget-container widget {
  width: 100% !important;
}

/* ============================================
   STAT CARDS MODERNOS
   ============================================ */
body.admin-light-theme .nexus-stat-card {
  background: var(--nexus-surface);
  border-radius: 16px;
  border: 1px solid var(--nexus-border);
  box-shadow: 0 4px 20px rgba(26, 90, 158, 0.08);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.admin-light-theme .nexus-stat-card:hover {
  box-shadow: 0 8px 32px rgba(26, 90, 158, 0.14);
  transform: translateY(-2px);
}

body.admin-light-theme .nexus-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nexus-gold), var(--nexus-gold-light));
  border-radius: 16px 16px 0 0;
}

body.admin-light-theme .nexus-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.admin-light-theme .bg-gradient-gold {
  background: linear-gradient(135deg, var(--nexus-gold) 0%, var(--nexus-gold-dark) 100%);
}

body.admin-light-theme .bg-gradient-blue {
  background: linear-gradient(135deg, var(--nexus-blue-light) 0%, var(--nexus-blue) 100%);
}

body.admin-light-theme .bg-gradient-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

body.admin-light-theme .bg-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

body.admin-light-theme .nexus-stat-body {
  margin-bottom: 0.75rem;
}

body.admin-light-theme .nexus-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nexus-text-muted);
  margin-bottom: 0.25rem;
}

body.admin-light-theme .nexus-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nexus-text);
  margin: 0;
  line-height: 1.2;
}

body.admin-light-theme .nexus-stat-value small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--nexus-text-muted);
  margin-left: 0.25rem;
}

body.admin-light-theme .nexus-stat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.admin-light-theme .nexus-stat-trend {
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body.admin-light-theme .nexus-stat-trend.trend-up {
  color: var(--nexus-success);
}

body.admin-light-theme .nexus-stat-trend.trend-down {
  color: #dc2626;
}

body.admin-light-theme .nexus-stat-period {
  font-size: 0.75rem;
  color: var(--nexus-text-muted);
}

/* Forms */
body.admin-light-theme .form-control,
body.admin-light-theme .custom-select,
body.admin-light-theme .admin-input {
  background-color: #fff !important;
  color: var(--nexus-text) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 8px !important;
}

body.admin-light-theme .form-control:focus,
body.admin-light-theme .admin-input:focus {
  border-color: var(--nexus-blue-light) !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2) !important;
}

body.admin-light-theme .form-control::placeholder {
  color: var(--nexus-text-muted);
}

body.admin-light-theme .form-dark {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--nexus-border);
  color: var(--nexus-text);
  box-shadow: 0 2px 8px rgba(26, 90, 158, 0.06);
}

/* Tables */
body.admin-light-theme thead,
body.admin-light-theme .modern-table thead th {
  background: #1e293b !important;
  color: #fff !important;
}

body.admin-light-theme tbody,
body.admin-light-theme .modern-table tbody td {
  background-color: #fff !important;
  color: var(--nexus-text) !important;
}

body.admin-light-theme .modern-table tbody tr:hover {
  background-color: rgba(74, 144, 217, 0.08) !important;
  transform: none;
}

body.admin-light-theme .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(238, 243, 249, 0.6) !important;
}

body.admin-light-theme .modern-table tbody tr.table-striped-selected td {
  background-color: #e9ecf0 !important;
}

body.admin-light-theme .modern-table a {
  color: var(--nexus-success, #1a8f3a) !important;
}

body.admin-light-theme .modern-table a:hover {
  color: #157a31 !important;
}

/* Modals */
body.admin-light-theme .modal-content {
  background: var(--nexus-surface) !important;
  border: 1px solid var(--nexus-border);
  box-shadow: 0 8px 32px rgba(13, 58, 110, 0.2);
  border-radius: 12px !important;
}

body.admin-light-theme .modal-header,
body.admin-light-theme .modal-body,
body.admin-light-theme .modal-footer {
  color: var(--nexus-text);
}

body.admin-light-theme .modal-header {
  background: #334155 !important;
  color: #fff !important;
  border-bottom: none !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 1rem 1.25rem !important;
}

body.admin-light-theme .modal-header .modal-title {
  color: #fff !important;
  font-weight: 600;
}

body.admin-light-theme .modal-header .close span {
  color: #fff !important;
}

body.admin-light-theme .modal-body {
  padding: 1.5rem !important;
}

body.admin-light-theme .modal-body label,
body.admin-light-theme .modal-body .card-body {
  color: var(--nexus-text) !important;
}

body.admin-light-theme .modal-footer {
  border-top: 1px solid var(--nexus-border) !important;
  padding: 1rem 1.25rem !important;
}

body.admin-light-theme .modal-separator-line {
  border-color: var(--nexus-border);
}

/* Dropdowns */
body.admin-light-theme .dropdown-menu {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.admin-light-theme .dropdown-menu .dropdown-header-nexus,
body.admin-light-theme .dropdown-menu > .text-center.text-white.font-weight-bold {
  background: #334155 !important;
  color: #fff !important;
  border-radius: 10px 10px 0 0 !important;
}

body.admin-light-theme .dropdown-item {
  color: #1e3a5f !important;
  padding: 0.6rem 1.25rem !important;
}

body.admin-light-theme .dropdown-item:hover {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
}

body.admin-light-theme .dropdown-item i {
  width: 1.25rem;
  text-align: center;
}

body.admin-light-theme .dropdown-menu a.text-light,
body.admin-light-theme .dropdown-menu .text-light {
  color: #475569 !important;
}

body.admin-light-theme .dropdown-menu .list-group-item {
  border-color: #f1f5f9 !important;
  background: transparent;
  color: #1e3a5f;
}

body.admin-light-theme .dropdown-menu .list-group-item:hover {
  background-color: #f8fafc !important;
}

body.admin-light-theme .dropdown-menu .list-group-item .text-white {
  color: #1e293b !important;
}

body.admin-light-theme .dropdown-menu .list-group-item .text-light {
  color: #64748b !important;
}

body.admin-light-theme .dropdown-menu .list-group-item .text-muted {
  color: #94a3b8 !important;
}

body.admin-light-theme .dropdown-divider {
  border-color: #e2e8f0;
}

/* Gold borders (dashboard cards) */
body.admin-light-theme .border-card,
body.admin-light-theme .border-card-start,
body.admin-light-theme .border-card-end,
body.admin-light-theme .border-card-saldos {
  border-color: var(--nexus-gold);
  background-color: var(--nexus-surface);
}

body.admin-light-theme .border-bottom {
  border-bottom-color: var(--nexus-gold) !important;
}

/* Buttons accent */
body.admin-light-theme .btn-success {
  background: linear-gradient(180deg, var(--nexus-blue-light) 0%, var(--nexus-blue) 100%) !important;
  border-color: var(--nexus-blue) !important;
}

body.admin-light-theme .btn-success:hover {
  background: linear-gradient(180deg, var(--nexus-blue-shine) 0%, var(--nexus-blue-mid) 100%) !important;
}

body.admin-light-theme .btn-round.btn-success {
  box-shadow: 0 2px 8px rgba(26, 90, 158, 0.3);
}

/* DataTables pagination */
body.admin-light-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #6b7280 !important;
}

body.admin-light-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e5e7eb !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}

body.admin-light-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #4b5563 !important;
  color: #ffffff !important;
  border-color: #4b5563 !important;
}

body.admin-light-theme .dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
body.admin-light-theme .dataTables_wrapper .dataTables_paginate .page-item.active .page-link:hover,
body.admin-light-theme .dataTables_wrapper .dataTables_paginate .page-item.active .page-link:focus {
  background: #4b5563 !important;
  color: #ffffff !important;
  border-color: #4b5563 !important;
}

body.admin-light-theme .dataTables_wrapper .dataTables_info,
body.admin-light-theme .dataTables_wrapper .dataTables_length label,
body.admin-light-theme .dataTables_wrapper .dataTables_filter label {
  color: var(--nexus-text-muted);
}

/* Intl tel input */
body.admin-light-theme .iti__country-list {
  background-color: var(--nexus-surface);
  color: var(--nexus-text);
}

/* Tracing list */
body.admin-light-theme .tracing-list {
  border-bottom-color: var(--nexus-border) !important;
}

/* ============================================
   AUTH / LOGIN MODERNO
   ============================================ */

body.admin-light-theme .auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--nexus-bg) 0%, #f8fafc 50%, #e8f0f8 100%);
  padding: 1.5rem;
}

body.admin-light-theme .panel-login {
  background: var(--nexus-surface);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--nexus-border);
  box-shadow: 0 8px 32px rgba(13, 58, 110, 0.08), 0 2px 8px rgba(13, 58, 110, 0.04);
  width: 100%;
  position: relative;
}

body.admin-light-theme .auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--nexus-gold) 0%, var(--nexus-gold-dark) 100%);
  box-shadow: 0 4px 16px rgba(227, 161, 39, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.admin-light-theme .auth-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(227, 161, 39, 0.4);
}

body.admin-light-theme .auth-logo img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
}

body.admin-light-theme .auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nexus-text);
  letter-spacing: -0.02em;
}

body.admin-light-theme .input-login {
  color: var(--nexus-text) !important;
  background-color: #fff !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 12px !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.admin-light-theme .input-login:focus {
  border-color: var(--nexus-blue-light) !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15) !important;
}

body.admin-light-theme .input-login::placeholder {
  color: var(--nexus-sidenav-light-muted);
}

body.admin-light-theme .panel-login .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nexus-text);
  margin-bottom: 0.4rem;
}

body.admin-light-theme .panel-login a {
  color: var(--nexus-success);
  font-weight: 600;
  transition: color 0.2s ease;
}

body.admin-light-theme .panel-login a:hover {
  color: #157a31;
}

body.admin-light-theme .panel-login .btn-success {
  background: linear-gradient(135deg, var(--nexus-blue) 0%, var(--nexus-blue-deep) 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0.7rem 1.5rem !important;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(26, 90, 158, 0.25);
}

body.admin-light-theme .panel-login .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 90, 158, 0.35);
}

body.admin-light-theme .panel-login input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  -webkit-text-fill-color: var(--nexus-text) !important;
}

body.admin-light-theme .authentication-wrapper.authentication-1 .authentication-inner {
  max-width: 420px;
}

body.admin-light-theme .login-update {
  position: static;
  margin: 0;
}

body.admin-light-theme .auth-bg .authentication-wrapper {
  min-height: auto;
  flex-basis: auto;
}

/* ============================================
   RESPONSIVE DESIGN - BREAKPOINTS
   ============================================ */

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1199.98px) {
  body.admin-light-theme .container-fluid.flex-grow-1.container-p-y {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Large devices (desktops, 992px and down) */
@media (max-width: 991.98px) {
  body.admin-light-theme h1.font-weight-bold {
    font-size: 1.5rem;
  }

  body.admin-light-theme .nexus-stat-value {
    font-size: 1.25rem;
  }

  body.admin-light-theme .nexus-stat-card {
    padding: 1.25rem;
  }

  body.admin-light-theme .card-header h4,
  body.admin-light-theme h4.card-header {
    font-size: 1rem;
    padding: 12px 16px !important;
  }

  body.admin-light-theme .breadcrumb {
    font-size: 0.75rem;
  }

  body.admin-light-theme .modern-table thead th {
    font-size: 0.7rem;
    padding: 10px 8px !important;
    white-space: nowrap;
  }

  body.admin-light-theme .modern-table tbody td {
    padding: 8px !important;
    font-size: 0.8rem;
  }

  body.admin-light-theme .card-body {
    padding: 1rem !important;
  }

  body.admin-light-theme #layout-navbar .navbar-brand.app-brand {
    display: flex !important;
  }

  body.admin-light-theme #search-nav .row {
    flex-direction: column;
    gap: 0.5rem;
  }

  body.admin-light-theme #search-nav .col-4,
  body.admin-light-theme #search-nav .col-3,
  body.admin-light-theme #search-nav .col-2,
  body.admin-light-theme #search-nav .col-1,
  body.admin-light-theme #search-nav .form-group.col {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  body.admin-light-theme #search-nav .form-group.col {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  body.admin-light-theme #search-nav .form-group.col .btn {
    flex: 1;
  }

  body.admin-light-theme .layout-content.imgparcialesV2 {
    padding-top: 0.5rem;
  }

  body.admin-light-theme .dataTables_wrapper .dataTables_length,
  body.admin-light-theme .dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: left !important;
    display: block !important;
    margin-bottom: 0.75rem;
  }

  body.admin-light-theme .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.admin-light-theme .dataTables_wrapper .dataTables_info {
    float: none !important;
    text-align: center !important;
    padding-top: 0.5rem !important;
    font-size: 0.8rem;
  }

  body.admin-light-theme .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: center !important;
    padding-top: 0.5rem !important;
  }

  body.admin-light-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 10px !important;
    font-size: 0.8rem;
  }

  body.admin-light-theme .dashboard-widget {
    min-height: 280px;
  }

  body.admin-light-theme .card .tradingview-widget-container {
    min-height: 280px;
  }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 767.98px) {
  body.admin-light-theme h1.font-weight-bold {
    font-size: 1.25rem;
  }

  body.admin-light-theme .nexus-stat-value {
    font-size: 1.1rem;
  }

  body.admin-light-theme .nexus-stat-label {
    font-size: 0.75rem;
  }

  body.admin-light-theme .nexus-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  body.admin-light-theme .nexus-stat-card {
    padding: 1rem;
  }

  body.admin-light-theme .nexus-stat-footer {
    padding-top: 0.5rem;
    flex-wrap: wrap;
  }

  body.admin-light-theme .card {
    border-radius: 10px !important;
  }

  body.admin-light-theme .card-header h4,
  body.admin-light-theme h4.card-header {
    font-size: 0.9rem;
    padding: 10px 14px !important;
  }

  body.admin-light-theme .card-body {
    padding: 0.75rem !important;
  }

  body.admin-light-theme .card-body.mb-3 {
    margin-bottom: 0 !important;
  }

  body.admin-light-theme .table-scroll-container .modern-table,
  body.admin-light-theme .table-responsive .modern-table,
  body.admin-light-theme .card-body > .modern-table {
    min-width: max-content;
    white-space: nowrap;
  }

  body.admin-light-theme .modern-table thead th {
    font-size: 0.65rem;
    padding: 8px 6px !important;
  }

  body.admin-light-theme .modern-table tbody td {
    padding: 6px !important;
    font-size: 0.75rem;
  }

  body.admin-light-theme .table-bordered {
    border: 0;
  }

  body.admin-light-theme .btn-round {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.admin-light-theme #search-nav .form-group.col {
    flex-direction: column;
  }

  body.admin-light-theme #search-nav .form-group.col .btn {
    width: 100%;
  }

  body.admin-light-theme #search-nav .text-right {
    text-align: left !important;
  }

  body.admin-light-theme .card-header .row {
    flex-direction: column;
    gap: 0.5rem;
  }

  body.admin-light-theme .card-header .col,
  body.admin-light-theme .card-header .col-6,
  body.admin-light-theme .card-header .col-2,
  body.admin-light-theme .card-header .col-4 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.admin-light-theme .card-header .col.text-right,
  body.admin-light-theme .card-header .col-6 .col.text-right {
    text-align: left !important;
  }

  body.admin-light-theme .card-header .input-icon {
    display: block;
  }

  body.admin-light-theme .card-header select.form-control {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  body.admin-light-theme .card-header .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  body.admin-light-theme .modal-dialog {
    margin: 0.5rem;
  }

  body.admin-light-theme .modal-xl {
    max-width: calc(100% - 1rem) !important;
  }

  body.admin-light-theme .modal-body {
    padding: 1rem !important;
  }

  body.admin-light-theme .modal-header {
    padding: 0.75rem 1rem !important;
  }

  body.admin-light-theme .modal-header .modal-title {
    font-size: 1rem;
  }

  body.admin-light-theme .modal-footer {
    padding: 0.75rem 1rem !important;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  body.admin-light-theme .modal-footer .btn {
    flex: 1;
    min-width: 120px;
  }

  body.admin-light-theme .form-control,
  body.admin-light-theme .custom-select,
  body.admin-light-theme .admin-input {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem !important;
  }

  body.admin-light-theme .container-fluid.flex-grow-1.container-p-y {
    padding: 0.75rem !important;
  }

  body.admin-light-theme .text-muted.small.mt-0.mb-4.d-block.breadcrumb {
    margin-bottom: 1rem !important;
  }

  body.admin-light-theme .border-card-start,
  body.admin-light-theme .border-card-end {
    border-radius: 10px;
  }

  body.admin-light-theme .layout-footer .container-fluid {
    flex-direction: column !important;
    text-align: center !important;
  }

  body.admin-light-theme .layout-footer .pt-3.ml-auto {
    margin-left: 0 !important;
  }

  /* ===== MOBILE NAVBAR - Compact and clean ===== */
  body.admin-light-theme #layout-navbar {
    min-height: 48px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.admin-light-theme #layout-navbar .navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  body.admin-light-theme #layout-navbar .navbar-nav .nav-item {
    width: 100%;
    margin-right: 0 !important;
  }

  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 0.5rem;
  }

  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item > .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item > .nav-link .navbar-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
  }

  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item > .nav-link > span:not(.badge):not(.d-lg-none) {
    display: none;
  }

  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item > .nav-link .d-lg-none {
    display: inline !important;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item .badge-dot {
    display: none;
  }

  /* Dropdown menus inside collapsed navbar - remove absolute positioning */
  body.admin-light-theme #layout-navbar .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    margin-top: 0.25rem !important;
    max-height: 250px;
    overflow-y: auto;
  }

  body.admin-light-theme #layout-navbar .dropdown-menu .dropdown-header-nexus,
  body.admin-light-theme #layout-navbar .dropdown-menu .text-center.text-white.font-weight-bold {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px 8px 0 0 !important;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem !important;
  }

  body.admin-light-theme #layout-navbar .dropdown-menu .list-group-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    background: transparent !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem;
  }

  body.admin-light-theme #layout-navbar .dropdown-menu .list-group-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  body.admin-light-theme #layout-navbar .dropdown-menu .text-light {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  body.admin-light-theme #layout-navbar .dropdown-menu a.text-light:hover {
    color: #fff !important;
  }

  /* Notification badge on mobile */
  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item .dropdown-toggle .bg-danger {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    line-height: 1;
    margin-left: auto;
  }

  body.admin-light-theme #layout-navbar .navbar-nav > .nav-item .dropdown-toggle {
    display: flex;
    align-items: center;
  }

  /* User profile on mobile - simplified */
  body.admin-light-theme #layout-navbar .demo-navbar-user .nav-link span.d-inline-flex {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  body.admin-light-theme #layout-navbar .demo-navbar-user .nav-link img {
    width: 28px;
    height: 28px;
  }

  body.admin-light-theme #layout-navbar .demo-navbar-user .nav-link span.px-1 {
    display: inline !important;
    font-size: 0.85rem;
    padding-left: 0 !important;
  }

  body.admin-light-theme #layout-navbar .demo-navbar-user .dropdown-menu {
    background: var(--nexus-surface, #fff) !important;
    border: 1px solid var(--nexus-border, rgba(26, 90, 158, 0.15)) !important;
  }

  body.admin-light-theme #layout-navbar .demo-navbar-user .dropdown-menu .dropdown-item {
    color: var(--nexus-text, #1e3a5f) !important;
  }

  body.admin-light-theme #layout-navbar .navbar-collapse {
    max-height: 75vh;
    overflow-y: auto;
    padding: 0.5rem 0;
  }

  /* Impersonation banner on mobile */
  body.admin-light-theme #layout-navbar .demo-navbar-messages:first-child .nav-link {
    background: rgba(220, 38, 38, 0.15);
    border-radius: 8px;
    padding: 0.5rem !important;
  }

  body.admin-light-theme .panel-login {
    padding: 1.5rem 1rem;
  }

  body.admin-light-theme .auth-title {
    font-size: 1rem;
  }

  body.admin-light-theme .auth-logo {
    width: 3.5rem;
    height: 3.5rem;
  }

  body.admin-light-theme .auth-logo img {
    width: 2rem;
    height: 2rem;
  }

  body.admin-light-theme .panel-login .row > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.admin-light-theme .layout-sidenav {
    width: 260px !important;
  }

  body.admin-light-theme .layout-container {
    margin-left: 0 !important;
  }
}

/* Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  body.admin-light-theme h1.font-weight-bold {
    font-size: 1.1rem;
  }

  body.admin-light-theme .nexus-stat-card {
    padding: 0.85rem;
  }

  body.admin-light-theme .nexus-stat-value {
    font-size: 1rem;
  }

  body.admin-light-theme .nexus-stat-label {
    font-size: 0.7rem;
  }

  body.admin-light-theme .nexus-stat-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  body.admin-light-theme .card-header h4,
  body.admin-light-theme h4.card-header {
    font-size: 0.85rem;
    padding: 8px 12px !important;
  }

  body.admin-light-theme .card-body {
    padding: 0.5rem !important;
  }

  body.admin-light-theme .modern-table thead th {
    font-size: 0.6rem;
    padding: 6px 4px !important;
  }

  body.admin-light-theme .modern-table tbody td {
    padding: 4px !important;
    font-size: 0.7rem;
  }

  body.admin-light-theme .btn-round {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem !important;
    min-height: 32px;
  }

  body.admin-light-theme .input-icon .form-control,
  body.admin-light-theme .input-icon .admin-input {
    font-size: 0.8rem;
  }

  body.admin-light-theme .breadcrumb {
    font-size: 0.7rem;
  }

  body.admin-light-theme .text-muted.small.mt-0.mb-4.d-block.breadcrumb {
    margin-bottom: 0.75rem !important;
  }

  body.admin-light-theme .container-fluid.flex-grow-1.container-p-y {
    padding: 0.5rem !important;
  }

  body.admin-light-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 3px 8px !important;
    font-size: 0.75rem;
    margin: 0 1px !important;
  }

  body.admin-light-theme .dataTables_wrapper .dataTables_info {
    font-size: 0.7rem;
  }

  body.admin-light-theme .modal-dialog {
    margin: 0.25rem;
  }

  body.admin-light-theme .modal-header {
    padding: 0.5rem 0.75rem !important;
  }

  body.admin-light-theme .modal-header .modal-title {
    font-size: 0.9rem;
  }

  body.admin-light-theme .modal-body {
    padding: 0.75rem !important;
  }

  body.admin-light-theme .modal-footer {
    padding: 0.5rem 0.75rem !important;
  }

  body.admin-light-theme .modal-footer .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  body.admin-light-theme .form-control,
  body.admin-light-theme .custom-select,
  body.admin-light-theme .admin-input {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem !important;
  }

  body.admin-light-theme .auth-bg {
    padding: 0.75rem;
  }

  body.admin-light-theme .panel-login {
    padding: 1.25rem 0.75rem;
  }

  body.admin-light-theme .auth-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
  }

  body.admin-light-theme .auth-logo img {
    width: 1.75rem;
    height: 1.75rem;
  }

  body.admin-light-theme .layout-sidenav {
    width: 240px !important;
  }

  body.admin-light-theme .sidenav .app-brand.demo {
    height: 60px;
    padding: 0 0.75rem;
  }

  body.admin-light-theme .sidenav .app-brand-logo {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
  }

  body.admin-light-theme .sidenav .app-brand-logo img {
    width: 1.25rem;
    height: 1.25rem;
  }

  body.admin-light-theme .sidenav .app-brand-text {
    font-size: 0.85rem;
  }

  body.admin-light-theme .sidenav.bg-dark .sidenav-link,
  body.admin-light-theme .sidenav.bg-nexus .sidenav-link {
    padding: 0.5rem 0.75rem;
    margin: 0.1rem 0.5rem;
    font-size: 0.8rem;
  }

  body.admin-light-theme .sidenav.bg-dark .sidenav-icon,
  body.admin-light-theme .sidenav.bg-nexus .sidenav-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }

  body.admin-light-theme .sidenav .sidenav-menu {
    padding-left: 1.5rem !important;
  }

  body.admin-light-theme .card-news .card-body {
    padding: 0.75rem;
  }

  body.admin-light-theme .card-title {
    font-size: 0.9rem;
  }

  body.admin-light-theme .dropdown-item {
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem;
  }

  body.admin-light-theme .layout-footer .footer-text {
    font-size: 0.75rem;
  }

  body.admin-light-theme .dashboard-widget {
    min-height: 200px;
  }

  body.admin-light-theme .card .tradingview-widget-container {
    min-height: 200px;
  }

  body.admin-light-theme .nexus-stat-footer .nexus-stat-period {
    display: block;
    margin-top: 0.15rem;
  }
}

/* iPhone SE and very small devices */
@media (max-width: 374.98px) {
  body.admin-light-theme h1.font-weight-bold {
    font-size: 1rem;
  }

  body.admin-light-theme .nexus-stat-value {
    font-size: 0.9rem;
  }

  body.admin-light-theme .card-header h4,
  body.admin-light-theme h4.card-header {
    font-size: 0.8rem;
  }

  body.admin-light-theme .modern-table thead th {
    font-size: 0.55rem;
    padding: 4px 3px !important;
  }

  body.admin-light-theme .modern-table tbody td {
    font-size: 0.65rem;
    padding: 3px !important;
  }

  body.admin-light-theme .btn-round {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem !important;
  }

  body.admin-light-theme .container-fluid.flex-grow-1.container-p-y {
    padding: 0.35rem !important;
  }

  body.admin-light-theme .card-body {
    padding: 0.35rem !important;
  }

  body.admin-light-theme .layout-sidenav {
    width: 220px !important;
  }
}

/* Mobile navbar collapse */
@media (max-width: 991px) {
  body.admin-light-theme #layout-navbar .navbar-toggler {
    display: block !important;
    border: none;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
    order: 3;
  }

  body.admin-light-theme #layout-navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.4rem 0.75rem !important;
  }

  body.admin-light-theme #layout-navbar > .navbar-brand {
    order: 1;
    margin-right: auto;
    padding: 0 !important;
  }

  body.admin-light-theme #layout-navbar > .layout-sidenav-toggle {
    order: 0;
    margin-right: 0.5rem;
  }

  body.admin-light-theme #layout-navbar .navbar-collapse {
    order: 4;
    flex-basis: 100%;
    margin-top: 0.5rem;
    background: #2a3547;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  body.admin-light-theme #layout-navbar .navbar-collapse:not(.show) {
    display: none;
  }

  body.admin-light-theme #layout-navbar .navbar-collapse.show {
    display: block;
  }

  body.admin-light-theme #layout-navbar .navbar-collapse hr {
    display: none !important;
  }
}

/* Override Bhumlu overlay for better mobile appearance */
@media (max-width: 991px) {
  body.admin-light-theme .layout-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
  }
}
