/* =====================================================
   Bingwa Admin Dashboard — style.css
   Brand: Navy #0B1120, Sky Blue #38BDF8, Coral #FF6B6B,
          Gold #FFB347→#FF6723, Cyan #22D3EE
   ===================================================== */

/* ---------- CSS Variables (Light) ---------- */
:root,
[data-bs-theme="light"] {
  --bw-navy: #0B1120;
  --bw-sky-blue: #38BDF8;
  --bw-coral: #FF6B6B;
  --bw-gold: #FFB347;
  --bw-gold-deep: #FF6723;
  --bw-cyan: #22D3EE;

  --bw-bg: #F0F4F8;
  --bw-surface: #FFFFFF;
  --bw-surface-alt: #F8FAFC;
  --bw-border: #E2E8F0;
  --bw-text: #1E293B;
  --bw-text-secondary: #64748B;
  --bw-text-muted: #94A3B8;

  --bw-sidebar-bg: #0B1120;
  --bw-sidebar-text: #CBD5E1;
  --bw-sidebar-text-active: #FFFFFF;
  --bw-sidebar-hover-bg: rgba(56, 189, 248, 0.1);
  --bw-sidebar-active-bg: rgba(56, 189, 248, 0.15);

  --bw-glass-bg: rgba(255, 255, 255, 0.7);
  --bw-glass-border: rgba(255, 255, 255, 0.3);
  --bw-glass-blur: 16px;

  --bw-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --bw-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --bw-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --bw-shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --bw-sidebar-width: 260px;
  --bw-sidebar-collapsed: 72px;
  --bw-navbar-height: 64px;
  --bw-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- CSS Variables (Dark) ---------- */
[data-bs-theme="dark"] {
  --bw-bg: #0B1120;
  --bw-surface: #131B2E;
  --bw-surface-alt: #0F172A;
  --bw-border: #1E293B;
  --bw-text: #E2E8F0;
  --bw-text-secondary: #94A3B8;
  --bw-text-muted: #64748B;

  --bw-sidebar-bg: #070D1A;
  --bw-sidebar-hover-bg: rgba(56, 189, 248, 0.08);
  --bw-sidebar-active-bg: rgba(56, 189, 248, 0.12);

  --bw-glass-bg: rgba(19, 27, 46, 0.7);
  --bw-glass-border: rgba(30, 41, 59, 0.5);

  --bw-shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --bw-shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --bw-shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --bw-shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bw-bg);
  color: var(--bw-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--bw-sky-blue);
  text-decoration: none;
  transition: color var(--bw-transition);
}
a:hover {
  color: var(--bw-coral);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bw-text-muted);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bw-text-secondary);
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--bw-sidebar-width);
  background: var(--bw-sidebar-bg);
  color: var(--bw-sidebar-text);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: width var(--bw-transition), transform var(--bw-transition);
  overflow: hidden;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.sidebar-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS-only logo icon fallback */
.logo-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}
.logo-pillar-blue {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40%;
  background: var(--bw-sky-blue);
  border-radius: 4px 0 0 4px;
}
.logo-pillar-red {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: var(--bw-coral);
  border-radius: 0 4px 4px 0;
}
.logo-arrow {
  position: absolute;
  left: 20%; bottom: 15%;
  width: 70%; height: 20%;
  background: linear-gradient(135deg, var(--bw-gold), var(--bw-gold-deep));
  clip-path: polygon(0 100%, 35% 100%, 55% 40%, 75% 40%, 75% 70%, 100% 0, 80% 0, 65% 50%, 50% 50%, 50% 100%);
  /* Staircase upward arrow */
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-toggle {
  color: var(--bw-sidebar-text);
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 1.1rem;
  line-height: 1;
}
.sidebar-toggle:hover {
  color: #fff;
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--bw-sidebar-text);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--bw-transition);
  white-space: nowrap;
  position: relative;
}
.sidebar-nav .nav-link:hover {
  background: var(--bw-sidebar-hover-bg);
  color: var(--bw-sky-blue);
}
.sidebar-nav .nav-link.active {
  background: var(--bw-sidebar-active-bg);
  color: var(--bw-sky-blue);
  font-weight: 600;
}
.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--bw-sky-blue);
  border-radius: 0 3px 3px 0;
}
.sidebar-nav .nav-link i:first-child {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-nav .nav-link .bi-chevron-down {
  font-size: 0.7rem;
  transition: transform var(--bw-transition);
}
.sidebar-nav .nav-link[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

/* Submenu */
.sidebar-nav .collapse .nav-link,
.sidebar-nav .collapsing .nav-link {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--bw-sidebar-text);
  opacity: 0.8;
}
.sidebar-nav .collapse .nav-link:hover,
.sidebar-nav .collapse .nav-link.active {
  opacity: 1;
  color: var(--bw-sky-blue);
}

.sidebar-divider {
  border-color: rgba(255,255,255,0.06);
  margin: 4px 0;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  display: block;
  font-size: 0.6875rem;
  color: var(--bw-text-muted);
}
.sidebar-footer .btn {
  color: var(--bw-sidebar-text);
  background: none;
  border: none;
  padding: 4px;
}
.sidebar-footer .btn:hover {
  color: var(--bw-coral);
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1035;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.show {
  display: block;
}

/* ---------- Main Content ---------- */
.main-content {
  margin-left: var(--bw-sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--bw-transition);
  display: flex;
  flex-direction: column;
}

/* Top Navbar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bw-navbar-height);
  padding: 0 24px;
  background: var(--bw-glass-bg);
  backdrop-filter: blur(var(--bw-glass-blur));
  -webkit-backdrop-filter: blur(var(--bw-glass-blur));
  border-bottom: 1px solid var(--bw-border);
}

.top-navbar .sidebar-toggle {
  color: var(--bw-text);
  font-size: 1.25rem;
  background: none;
  border: 1px solid var(--bw-border);
  border-radius: 8px;
  padding: 6px 10px;
  transition: all var(--bw-transition);
}
.top-navbar .sidebar-toggle:hover {
  background: var(--bw-surface-alt);
}

/* Search */
.search-wrapper {
  position: relative;
  margin-left: 16px;
  flex: 1;
  max-width: 400px;
}
.search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bw-text-muted);
  font-size: 0.875rem;
}
.search-wrapper .form-control {
  padding-left: 40px;
  border-radius: 12px;
  border: 1px solid var(--bw-border);
  background: var(--bw-surface-alt);
  height: 40px;
  font-size: 0.875rem;
  transition: all var(--bw-transition);
}
.search-wrapper .form-control:focus {
  background: var(--bw-surface);
  border-color: var(--bw-sky-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

/* Navbar Right */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: var(--bw-text-secondary);
  font-size: 1.15rem;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all var(--bw-transition);
}
.nav-icon-btn:hover {
  background: var(--bw-surface-alt);
  color: var(--bw-text);
}

/* Theme Toggle */
.theme-toggle-wrapper {
  display: flex;
}
.theme-toggle {
  background: none;
  border: none;
  color: var(--bw-text-secondary);
  font-size: 1.15rem;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all var(--bw-transition);
}
.theme-toggle:hover {
  background: var(--bw-surface-alt);
  color: var(--bw-gold);
}

/* User Dropdown */
.user-dropdown-btn {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid var(--bw-border);
  border-radius: 12px;
  padding: 4px 12px 4px 6px;
  color: var(--bw-text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--bw-transition);
}
.user-dropdown-btn:hover {
  background: var(--bw-surface-alt);
  border-color: var(--bw-sky-blue);
}

/* Notification Dropdown */
.notification-dropdown {
  width: 340px;
  border: 1px solid var(--bw-border);
  border-radius: 16px;
  box-shadow: var(--bw-shadow-lg);
  padding: 0;
  overflow: hidden;
}
.notification-dropdown .dropdown-header {
  font-weight: 600;
  padding: 14px 16px;
  background: var(--bw-surface-alt);
  border-bottom: 1px solid var(--bw-border);
}
.notification-dropdown .dropdown-item {
  padding: 12px 16px;
  white-space: normal;
}
.notification-dropdown .dropdown-item:hover {
  background: var(--bw-surface-alt);
}
.notification-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.notification-content {
  flex: 1;
  min-width: 0;
}
.notification-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---------- Content Wrapper ---------- */
.content-wrapper {
  flex: 1;
  padding: 24px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bw-surface);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--bw-border);
  font-size: 0.8125rem;
}
.breadcrumb-item a {
  color: var(--bw-text-secondary);
}
.breadcrumb-item.active {
  color: var(--bw-text);
  font-weight: 500;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, var(--bw-navy) 0%, #1a2d4a 100%);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.welcome-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56,189,248,0.2), transparent 70%);
  border-radius: 50%;
}
.welcome-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 80px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,107,107,0.15), transparent 70%);
  border-radius: 50%;
}
.welcome-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.welcome-content p {
  color: #94A3B8;
  margin: 0;
  font-size: 0.9rem;
}
.welcome-illustration {
  font-size: 3.5rem;
  color: var(--bw-gold);
  opacity: 0.8;
}

/* ---------- Stat Cards ---------- */
.stat-card {
  background: var(--bw-surface);
  border: 1px solid var(--bw-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--bw-transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bw-sky-blue), var(--bw-coral));
  opacity: 0;
  transition: opacity var(--bw-transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bw-shadow-md);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-info {
  flex: 1;
}
.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--bw-text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
}
.stat-change.positive {
  color: #16A34A;
}
.stat-change.negative {
  color: #DC2626;
}

/* ---------- Bingwa Card ---------- */
.bingwa-card {
  background: var(--bw-surface);
  border: 1px solid var(--bw-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--bw-shadow-sm);
  transition: all var(--bw-transition);
}
.bingwa-card:hover {
  box-shadow: var(--bw-shadow-md);
}
.bingwa-card .card-header {
  background: var(--bw-surface-alt);
  border-bottom: 1px solid var(--bw-border);
  padding: 16px 20px;
}
.bingwa-card .card-title {
  font-size: 0.9375rem;
  font-weight: 600;
}
.bingwa-card .card-body {
  padding: 20px;
}

/* ---------- Chart Placeholders ---------- */
.chart-placeholder {
  padding: 10px 0;
}
.revenue-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  gap: 12px;
  padding: 0 8px;
}
.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.chart-bar-group span {
  font-size: 0.6875rem;
  color: var(--bw-text-muted);
}
.chart-bar {
  width: 24px;
  border-radius: 6px 6px 0 0;
  background: var(--bw-sky-blue);
  transition: height var(--bw-transition);
  position: relative;
}
.chart-bar.bg-coral {
  background: var(--bw-coral);
  width: 18px;
  margin-left: 4px;
}

/* Donut Chart (CSS-only) */
.donut-chart-wrapper {
  display: flex;
  justify-content: center;
}
.donut-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(
    var(--bw-sky-blue) 0deg 241.2deg,
    var(--bw-coral) 241.2deg 316.8deg,
    var(--bw-gold) 316.8deg 360deg
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-chart::after {
  content: '';
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bw-surface);
  position: absolute;
}
.donut-center {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bw-text);
}

/* Chart Legend */
.chart-legend,
.traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--bw-text-secondary);
}
.traffic-legend {
  flex-direction: column;
  gap: 10px;
}
.traffic-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.bg-sky-blue { background: var(--bw-sky-blue); }
.legend-dot.bg-coral { background: var(--bw-coral); }
.legend-dot.bg-gold { background: var(--bw-gold); }

/* ---------- Table ---------- */
.table {
  font-size: 0.875rem;
}
.table thead th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bw-text-secondary);
  border-bottom: 2px solid var(--bw-border);
  padding: 12px 16px;
  white-space: nowrap;
}
.table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--bw-border);
}
.table-hover tbody tr:hover {
  background: var(--bw-surface-alt);
}

/* ---------- Activity Timeline ---------- */
.activity-timeline {
  position: relative;
  padding-left: 24px;
}
.activity-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--bw-border);
}
.activity-item {
  position: relative;
  padding-bottom: 20px;
}
.activity-item:last-child {
  padding-bottom: 0;
}
.activity-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  left: -20px;
  top: 4px;
  border: 2px solid var(--bw-surface);
  box-shadow: 0 0 0 2px var(--bw-border);
}
.activity-dot.bg-primary { background: var(--bw-sky-blue); box-shadow: 0 0 0 2px rgba(56,189,248,0.3); }
.activity-dot.bg-success { background: #16A34A; box-shadow: 0 0 0 2px rgba(22,163,74,0.3); }
.activity-dot.bg-warning { background: var(--bw-gold); box-shadow: 0 0 0 2px rgba(255,179,71,0.3); }
.activity-dot.bg-info { background: var(--bw-cyan); box-shadow: 0 0 0 2px rgba(34,211,238,0.3); }
.activity-dot.bg-danger { background: var(--bw-coral); box-shadow: 0 0 0 2px rgba(255,107,107,0.3); }
.activity-content p {
  margin: 0 0 2px;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.activity-content small {
  font-size: 0.6875rem;
}

/* ---------- Top Products ---------- */
.top-product-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--bw-border);
}
.top-product-item:last-child {
  border-bottom: none;
}
.product-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ---------- Starter Page ---------- */
.starter-empty-state {
  padding: 40px 20px;
}
.starter-empty-state i {
  opacity: 0.4;
}

/* ---------- Footer ---------- */
.content-footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--bw-text-muted);
  border-top: 1px solid var(--bw-border);
}
.content-footer p {
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn-bingwa-primary {
  background: linear-gradient(135deg, var(--bw-sky-blue) 0%, var(--bw-cyan) 100%);
  color: #0B1120;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--bw-transition);
}
.btn-bingwa-primary:hover {
  background: linear-gradient(135deg, var(--bw-cyan) 0%, var(--bw-sky-blue) 100%);
  color: #0B1120;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(56,189,248,0.3);
}
.btn-bingwa-primary:active {
  transform: translateY(0);
}

/* =====================================================
   AUTH PAGES — Split-Screen Layout
   ===================================================== */

.auth-body {
  background: var(--bw-bg);
  min-height: 100vh;
}

.auth-container {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* Left Panel */
.auth-left-panel {
  flex: 0 0 45%;
  background: linear-gradient(160deg, #0B1120 0%, #132238 40%, #1a3050 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 360px;
}

.auth-logo-wrapper {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
}

.auth-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-large {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
}
.logo-icon-large .logo-pillar-blue {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40%;
  background: var(--bw-sky-blue);
  border-radius: 6px 0 0 6px;
}
.logo-icon-large .logo-pillar-red {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: var(--bw-coral);
  border-radius: 0 6px 6px 0;
}
.logo-icon-large .logo-arrow {
  position: absolute;
  left: 18%; bottom: 12%;
  width: 70%; height: 22%;
  background: linear-gradient(135deg, var(--bw-gold), var(--bw-gold-deep));
}

.auth-brand-name {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
}

.auth-tagline {
  font-size: 1rem;
  color: #94A3B8;
  margin-bottom: 32px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #CBD5E1;
}
.auth-feature-item i {
  color: var(--bw-sky-blue);
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

/* Decorative Circles */
.auth-left-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.auth-deco-circle {
  position: absolute;
  border-radius: 50%;
}
.auth-deco-1 {
  width: 300px; height: 300px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(56,189,248,0.08), transparent 70%);
}
.auth-deco-2 {
  width: 200px; height: 200px;
  bottom: 40px; right: -50px;
  background: radial-gradient(circle, rgba(255,107,107,0.06), transparent 70%);
}
.auth-deco-3 {
  width: 120px; height: 120px;
  top: 50%; left: 60%;
  background: radial-gradient(circle, rgba(255,179,71,0.06), transparent 70%);
}

/* Right Panel */
.auth-right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bw-surface);
  position: relative;
}

.auth-right-content {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.auth-theme-toggle {
  position: absolute;
  top: -16px;
  right: 0;
}

.auth-form-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-form-wrapper .text-muted {
  font-size: 0.875rem;
}

/* Input Group Icon */
.input-group-icon .input-group-text {
  background: var(--bw-surface-alt);
  border: 1px solid var(--bw-border);
  color: var(--bw-text-secondary);
  border-radius: 12px 0 0 12px;
  padding: 10px 14px;
}
.input-group-icon .form-control {
  border: 1px solid var(--bw-border);
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  font-size: 0.875rem;
  height: 44px;
}
.input-group-icon .form-control:focus {
  border-color: var(--bw-sky-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.input-group-icon .btn-outline-secondary {
  border: 1px solid var(--bw-border);
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: var(--bw-text-muted);
  padding: 10px 12px;
}

/* Divider Text */
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bw-text-muted);
  font-size: 0.8125rem;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bw-border);
}

/* Password Strength */
.password-strength {
  font-size: 0.75rem;
}
.strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--bw-border);
  overflow: hidden;
  margin-bottom: 6px;
}
.strength-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: all 0.4s ease;
}

/* Forgot Password Icon */
.forgot-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(255,107,107,0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bw-sky-blue);
}

/* Lock Screen */
.lock-screen-content {
  text-align: center;
}

/* ---------- Badge Overrides ---------- */
.badge.bg-danger {
  font-size: 0.625rem;
  padding: 3px 6px;
}

/* ---------- Form Check Override ---------- */
.form-check-input:checked {
  background-color: var(--bw-sky-blue);
  border-color: var(--bw-sky-blue);
}

/* ---------- RESPONSIVE ---------- */

/* Large and below: sidebar becomes overlay */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: flex !important;
  }
}

/* Auth responsive */
@media (max-width: 767.98px) {
  .auth-container {
    flex-direction: column;
  }
  .auth-left-panel {
    flex: 0 0 auto;
    min-height: 240px;
    padding: 32px 24px;
  }
  .auth-right-panel {
    padding: 32px 24px;
  }
  .auth-features {
    display: none;
  }
  .auth-form-wrapper h2 {
    font-size: 1.25rem;
  }
}

/* Small screens */
@media (max-width: 575.98px) {
  .content-wrapper {
    padding: 16px;
  }
  .stat-card {
    padding: 18px;
  }
  .welcome-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .welcome-illustration {
    margin-top: 12px;
  }
  .revenue-chart-bars {
    height: 140px;
  }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stat-card {
  animation: fadeInUp 0.5s ease forwards;
}
.col-sm-6:nth-child(1) .stat-card { animation-delay: 0.05s; }
.col-sm-6:nth-child(2) .stat-card { animation-delay: 0.1s; }
.col-sm-6:nth-child(3) .stat-card { animation-delay: 0.15s; }
.col-sm-6:nth-child(4) .stat-card { animation-delay: 0.2s; }

.bingwa-card {
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.25s;
}

/* ---------- Utility Classes ---------- */
.bg-sky-blue { background-color: var(--bw-sky-blue) !important; }
.bg-coral { background-color: var(--bw-coral) !important; }
.bg-gold { background-color: var(--bw-gold) !important; }
.bg-cyan { background-color: var(--bw-cyan) !important; }
.text-sky-blue { color: var(--bw-sky-blue) !important; }
.text-coral { color: var(--bw-coral) !important; }
.text-gold { color: var(--bw-gold) !important; }