@import url('../vendor/fonts/google-fonts.css');

:root {
  --bc-primary: #2563eb;
  --bc-primary-light: #3b82f6;
  --bc-primary-dark: #1e40af;
  --bc-primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --bc-primary-soft: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(30,64,175,0.06) 100%);
  --bc-accent: #06b6d4;
  --bc-accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --bc-success: #10b981;
  --bc-success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --bc-gold: #d4af37;
  --bc-gold-gradient: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
  --bc-warning: #f59e0b;
  --bc-warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --bc-danger: #ef4444;
  --bc-danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --bc-info: #2563eb;
  --bc-info-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --bc-purple: #8b5cf6;
  --bc-purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --bc-teal: #14b8a6;
  --bc-teal-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --bc-bg: #f8fafc;
  --bc-surface: #ffffff;
  --bc-surface-2: #f8fafc;
  --bc-surface-3: #f1f5f9;
  --bc-border: #e2e8f0;
  --bc-border-light: #f1f5f9;
  --bc-text: #0f172a;
  --bc-text-secondary: #475569;
  --bc-text-muted: #64748b;
  --bc-card-radius: 20px;
  --bc-card-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.03);
  --bc-card-shadow-hover: 0 20px 48px -12px rgba(37,99,235,0.18), 0 8px 24px -8px rgba(15,23,42,0.06);
  --bc-glow-primary: 0 0 24px rgba(37,99,235,0.18);
  --bc-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --bc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --bc-transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --bc-border-radius: 14px;
  --bc-border-radius-sm: 10px;
  --bc-border-radius-lg: 20px;
  --bc-border-radius-xl: 28px;
}



body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bc-bg);
  color: var(--bc-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 0% 20%, rgba(99,102,241,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(6,182,212,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(168,85,247,0.03) 0%, transparent 50%);
}



h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bc-text);
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

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

.bc-navbar {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 40%, #1a1a3e 100%) !important;
  height: 68px;
  box-shadow: 0 4px 30px rgba(99,102,241,0.15);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-bs-theme="dark"] .bc-navbar {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.bc-navbar .navbar-brand {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.bc-navbar .navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.bc-navbar .navbar-brand .brand-sub {
  font-weight: 400;
  font-size: 0.65rem;
  opacity: 0.6;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bc-navbar .nav-link {
  color: rgba(255,255,255,0.75) !important;
  border-radius: 10px;
  padding: 0.5rem 1rem !important;
  transition: all var(--bc-transition);
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
  gap: 6px;
}

.bc-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.bc-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.3);
}

.bc-navbar .nav-link i { margin-right: 6px; font-size: 1rem; }

.bc-navbar .dropdown-menu {
  border: 1px solid var(--bc-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 0.5rem;
  margin-top: 10px !important;
  min-width: 300px;
  animation: bcDropdownIn 0.2s ease;
  background: var(--bc-surface);
}

@keyframes bcDropdownIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bc-navbar .dropdown-item {
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--bc-transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bc-text);
}

.bc-navbar .dropdown-item:hover {
  background: var(--bc-primary-soft);
  color: var(--bc-primary);
  transform: translateX(4px);
}

.bc-navbar .dropdown-item i { width: 20px; text-align: center; font-size: 1rem; color: var(--bc-primary); }
.bc-navbar .dropdown-header { color: var(--bc-text-muted); font-size: 0.65rem; letter-spacing: 1.5px; padding: 0.5rem 1rem; text-transform: uppercase; }
.bc-navbar .dropdown-divider { margin: 0.4rem 0; border-color: var(--bc-border); }

.bc-theme-toggle {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--bc-transition);
  font-size: 1.1rem;
}

.bc-theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  transform: rotate(20deg) scale(1.05);
}

.bc-search-bar { position: relative; }
.bc-search-bar .form-control {
  padding-left: 2.5rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  height: 36px;
}
.bc-search-bar .form-control::placeholder { color: rgba(255,255,255,0.4); }
.bc-search-bar .form-control:focus { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.bc-search-bar .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }

.card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-card-radius);
  box-shadow: var(--bc-card-shadow);
  transition: all var(--bc-transition);
  overflow: hidden;
  position: relative;
}

.card:hover {
  box-shadow: var(--bc-card-shadow-hover);
  transform: translateY(-2px);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--bc-border);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header:first-child { border-radius: calc(var(--bc-card-radius) - 1px) calc(var(--bc-card-radius) - 1px) 0 0; }
.card-body { padding: 1.5rem; }

.bc-stat-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--bc-card-radius);
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  transition: all var(--bc-transition);
  cursor: default;
}

.bc-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--bc-card-radius) var(--bc-card-radius) 0 0;
}

.bc-stat-card::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.04;
  pointer-events: none;
}

.bc-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bc-card-shadow-hover);
}

.bc-stat-primary::before { background: var(--bc-primary-gradient); }
.bc-stat-primary::after { background: var(--bc-primary); }
.bc-stat-success::before { background: var(--bc-success-gradient); }
.bc-stat-success::after { background: var(--bc-success); }
.bc-stat-warning::before { background: var(--bc-warning-gradient); }
.bc-stat-warning::after { background: var(--bc-warning); }
.bc-stat-danger::before { background: var(--bc-danger-gradient); }
.bc-stat-danger::after { background: var(--bc-danger); }
.bc-stat-info::before { background: var(--bc-info-gradient); }
.bc-stat-info::after { background: var(--bc-info); }
.bc-stat-accent::before { background: var(--bc-accent-gradient); }
.bc-stat-accent::after { background: var(--bc-accent); }
.bc-stat-purple::before { background: var(--bc-purple-gradient); }
.bc-stat-purple::after { background: var(--bc-purple); }
.bc-stat-pink::before { background: var(--bc-pink-gradient); }
.bc-stat-pink::after { background: var(--bc-pink); }
.bc-stat-teal::before { background: var(--bc-teal-gradient); }
.bc-stat-teal::after { background: var(--bc-teal); }
.bc-stat-orange::before { background: var(--bc-orange-gradient); }
.bc-stat-orange::after { background: var(--bc-orange); }

.bc-stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
}

.bc-stat-primary .stat-icon { background: rgba(99,102,241,0.1); color: var(--bc-primary); }
.bc-stat-success .stat-icon { background: rgba(16,185,129,0.1); color: var(--bc-success); }
.bc-stat-warning .stat-icon { background: rgba(245,158,11,0.1); color: var(--bc-warning); }
.bc-stat-danger .stat-icon { background: rgba(239,68,68,0.1); color: var(--bc-danger); }
.bc-stat-info .stat-icon { background: rgba(99,102,241,0.1); color: var(--bc-info); }
.bc-stat-accent .stat-icon { background: rgba(6,182,212,0.1); color: var(--bc-accent); }
.bc-stat-purple .stat-icon { background: rgba(168,85,247,0.1); color: var(--bc-purple); }
.bc-stat-pink .stat-icon { background: rgba(236,72,153,0.1); color: var(--bc-pink); }
.bc-stat-teal .stat-icon { background: rgba(20,184,166,0.1); color: var(--bc-teal); }
.bc-stat-orange .stat-icon { background: rgba(249,115,22,0.1); color: var(--bc-orange); }

.bc-stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--bc-text) 0%, var(--bc-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bc-stat-card .stat-label {
  color: var(--bc-text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.25rem;
}

.bc-stat-card .stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.6rem 1.35rem;
  transition: all var(--bc-transition);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--bc-transition);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--bc-primary-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.btn-primary:hover { box-shadow: 0 8px 25px rgba(99,102,241,0.4); transform: translateY(-2px); }

.btn-success {
  background: var(--bc-success-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-success:hover { box-shadow: 0 8px 25px rgba(16,185,129,0.4); transform: translateY(-2px); }

.btn-danger {
  background: var(--bc-danger-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}
.btn-danger:hover { box-shadow: 0 8px 25px rgba(239,68,68,0.4); transform: translateY(-2px); }

.btn-warning {
  background: var(--bc-warning-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.btn-warning:hover { box-shadow: 0 8px 25px rgba(245,158,11,0.4); transform: translateY(-2px); color: #fff; }

.btn-info {
  background: var(--bc-info-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.btn-info:hover { box-shadow: 0 8px 25px rgba(99,102,241,0.4); transform: translateY(-2px); color: #fff; }

.btn-outline-primary {
  border: 2px solid var(--bc-primary);
  color: var(--bc-primary);
}
.btn-outline-primary:hover { background: var(--bc-primary-gradient); color: #fff; transform: translateY(-2px); border-color: transparent; }

.btn-outline-success {
  border: 2px solid var(--bc-success);
  color: var(--bc-success);
}
.btn-outline-success:hover { background: var(--bc-success-gradient); color: #fff; transform: translateY(-2px); border-color: transparent; }

.btn-outline-danger {
  border: 2px solid var(--bc-danger);
  color: var(--bc-danger);
}
.btn-outline-danger:hover { background: var(--bc-danger-gradient); color: #fff; transform: translateY(-2px); border-color: transparent; }

.btn-outline-warning {
  border: 2px solid var(--bc-warning);
  color: var(--bc-warning);
}
.btn-outline-warning:hover { background: var(--bc-warning-gradient); color: #fff; transform: translateY(-2px); border-color: transparent; }

.btn-outline-info {
  border: 2px solid var(--bc-info);
  color: var(--bc-info);
}
.btn-outline-info:hover { background: var(--bc-info-gradient); color: #fff; transform: translateY(-2px); border-color: transparent; }

.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.78rem; border-radius: 10px; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; border-radius: 14px; }

.form-control {
  border-radius: 12px;
  border: 2px solid var(--bc-border);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  transition: all var(--bc-transition);
  background: var(--bc-surface);
  color: var(--bc-text);
}

.form-control:focus {
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
  background: var(--bc-surface);
}

.form-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--bc-text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-text { color: var(--bc-text-muted); font-size: 0.775rem; }

.input-group-text {
  border-radius: 12px;
  border: 2px solid var(--bc-border);
  background: var(--bc-surface-2);
  color: var(--bc-text-secondary);
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  border-radius: 4px !important;
  border: 2px solid var(--bc-border);
  cursor: pointer;
  transition: all var(--bc-transition-fast);
}

.form-check-input:checked {
  background-color: var(--bc-primary);
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-check-input:focus { box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: var(--bc-surface-2);
  --bs-table-striped-bg: var(--bc-surface-2);
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bc-text-secondary);
  border-bottom: 2px solid var(--bc-border);
  padding: 1rem 1rem;
  white-space: nowrap;
  background: var(--bc-surface-2);
}

.table th:first-child { border-radius: 12px 0 0 0; }
.table th:last-child { border-radius: 0 12px 0 0; }

.table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--bc-border-light);
  font-size: 0.875rem;
}

.table tr:last-child td { border-bottom: none; }
.table-hover tbody tr { transition: background var(--bc-transition-fast); }
.table-responsive { border-radius: var(--bc-border-radius); }

.badge {
  font-weight: 600;
  font-size: 0.68rem;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge.bg-success { background: var(--bc-success-gradient) !important; }
.badge.bg-danger { background: var(--bc-danger-gradient) !important; }
.badge.bg-warning { background: var(--bc-warning-gradient) !important; color: #fff !important; }
.badge.bg-info { background: var(--bc-info-gradient) !important; }
.badge.bg-primary { background: var(--bc-primary-gradient) !important; }
.badge.bg-secondary { background: linear-gradient(135deg, #8b8da6, #6b6b8e) !important; }

.alert {
  border: none;
  border-radius: var(--bc-border-radius);
  padding: 1rem 1.25rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.alert-primary { background: rgba(99,102,241,0.1); color: var(--bc-primary-dark); }
.alert-primary::before { background: var(--bc-primary-gradient); }
.alert-success { background: rgba(16,185,129,0.1); color: #059669; }
.alert-success::before { background: var(--bc-success-gradient); }
.alert-danger { background: rgba(239,68,68,0.1); color: #dc2626; }
.alert-danger::before { background: var(--bc-danger-gradient); }
.alert-warning { background: rgba(245,158,11,0.1); color: #d97706; }
.alert-warning::before { background: var(--bc-warning-gradient); }
.alert-info { background: rgba(99,102,241,0.1); color: #4f46e5; }
.alert-info::before { background: var(--bc-info-gradient); }

.toast {
  border: none;
  border-radius: var(--bc-border-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden;
  background: var(--bc-surface);
}

.pagination { gap: 4px; }

.page-link {
  border-radius: 10px !important;
  border: none;
  padding: 0.45rem 0.85rem;
  font-weight: 500;
  color: var(--bc-text);
  background: var(--bc-surface);
  transition: all var(--bc-transition-fast);
}

.page-link:hover { background: var(--bc-surface-2); transform: translateY(-1px); }
.page-item.active .page-link {
  background: var(--bc-primary-gradient);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  color: #fff;
}

.breadcrumb { background: transparent; padding: 0; margin-bottom: 1.5rem; }
.breadcrumb-item a { color: var(--bc-text-secondary); text-decoration: none; font-weight: 500; transition: color var(--bc-transition-fast); }
.breadcrumb-item a:hover { color: var(--bc-primary); }
.breadcrumb-item.active { color: var(--bc-text); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--bc-text-muted); }

.bc-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 35%, #ecfeff 70%, #f0f9ff 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.bc-login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 45%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 30%, rgba(6,182,212,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 85%, rgba(168,85,247,0.10) 0%, transparent 55%);
  animation: bcLoginBreath 12s ease-in-out infinite;
}

@keyframes bcLoginBreath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.bc-login-page .bc-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: bcOrbFloat 18s ease-in-out infinite;
  opacity: 0.5;
}

.bc-login-page .bc-orb:nth-child(1) {
  width: min(420px, 45vw); height: min(420px, 45vw);
  background: radial-gradient(circle, rgba(129,140,248,0.35), rgba(129,140,248,0));
  top: -12%; left: -10%;
  animation-delay: 0s;
}

.bc-login-page .bc-orb:nth-child(2) {
  width: min(340px, 40vw); height: min(340px, 40vw);
  background: radial-gradient(circle, rgba(34,211,238,0.30), rgba(34,211,238,0));
  bottom: -8%; right: -6%;
  animation-delay: -6s;
}

.bc-login-page .bc-orb:nth-child(3) {
  width: min(300px, 35vw); height: min(300px, 35vw);
  background: radial-gradient(circle, rgba(192,132,252,0.28), rgba(192,132,252,0));
  top: 55%; left: 48%;
  animation-delay: -12s;
}

@keyframes bcOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(35px, -25px) scale(1.06); }
  66% { transform: translate(-25px, 20px) scale(0.94); }
}

/* Auth layout: 3D scene + card */
.bc-auth-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 2rem;
}
@media (max-width: 992px) {
  .bc-auth-wrap { grid-template-columns: 1fr; gap: 2rem; padding: 1rem; }
  .bc-auth-wrap .bc-auth-scene { display: none; }
}

/* Animated billing scene (floating) */
.bc-auth-scene {
  position: relative;
  animation: bcSceneFloat 7s ease-in-out infinite;
}
@keyframes bcSceneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.bc-scene-panel {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 28px;
  box-shadow:
    0 40px 100px rgba(99,102,241,0.20),
    0 20px 50px rgba(30,33,64,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 1.6rem 1.6rem 0;
  transform: rotateY(-6deg);
}
.bc-scene-panel .scene-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1.1rem;
}
.bc-scene-panel .scene-head span {
  width: 10px; height: 10px; border-radius: 50%;
}
.bc-scene-badge {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(99,102,241,0.16);
  padding: 0.6rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bc-text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  animation: bcBadgeFloat 5s ease-in-out infinite;
}
.bc-scene-badge i { color: var(--bc-primary); font-size: 0.9rem; }
.bc-scene-badge.one { top: -16px; right: -10px; animation-delay: -1.5s; }
.bc-scene-badge.two { bottom: 40px; left: -26px; animation-delay: -3.2s; }
.bc-scene-badge.three { bottom: -18px; right: 30px; animation-delay: -4.5s; }
@keyframes bcBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* 2D floating login card — light glass */
.bc-login-card {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 30px;
  padding: 2.8rem 2.6rem;
  width: 100%;
  max-width: 430px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 44px 110px rgba(99,102,241,0.22),
    0 22px 50px rgba(30,33,64,0.10),
    inset 0 1px 0 rgba(255,255,255,1);
}
.bc-login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(255,255,255,0.1), rgba(6,182,212,0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.bc-login-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(129,140,248,0.10), transparent 65%);
  pointer-events: none;
}

.bc-login-card .login-logo {
  text-align: center;
  margin-bottom: 1.9rem;
}

.bc-login-card .login-logo .logo-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 55%, #c084fc 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
  font-size: 2.1rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  position: relative;
  box-shadow: 0 18px 44px rgba(129,140,248,0.45), 0 4px 12px rgba(99,102,241,0.25);
}

.bc-login-card .login-logo .logo-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(129,140,248,0.4), transparent, rgba(192,132,252,0.35));
  z-index: -1;
  filter: blur(6px);
}

.bc-login-card .login-logo h1 {
  color: var(--bc-text);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #4f46e5 20%, #a855f7 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bc-login-card .login-logo p {
  color: var(--bc-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.bc-login-card .form-label { color: var(--bc-text-secondary); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }
.bc-login-card .form-control {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid var(--bc-border);
  color: var(--bc-text);
  padding: 0.78rem 1rem;
  border-radius: 12px;
  transition: all var(--bc-transition);
}
.bc-login-card .form-control:focus {
  background: #fff;
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}
.bc-login-card .form-control::placeholder { color: var(--bc-text-muted); }

.bc-login-link {
  color: var(--bc-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.bc-login-link:hover { color: var(--bc-primary); }

.bc-register-card { max-height: 92vh; overflow-y: auto; }

.bc-form-section {
  color: var(--bc-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 1.1rem 0 0.9rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bc-border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-form-section i { color: var(--bc-primary); }

.bc-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.bc-empty-state .empty-icon { font-size: 4rem; color: var(--bc-text-muted); margin-bottom: 1rem; }
.bc-empty-state h4 { color: var(--bc-text); margin-bottom: 0.5rem; }
.bc-empty-state p { color: var(--bc-text-secondary); max-width: 400px; margin: 0 auto 1.5rem; }

.modal-content {
  border: none;
  border-radius: var(--bc-border-radius-lg);
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
  background: var(--bc-surface);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--bc-border);
  padding: 1.25rem 1.5rem;
}
.modal-header .modal-title { font-weight: 700; }
.modal-footer {
  border-top: 1px solid var(--bc-border);
  padding: 1rem 1.5rem;
}
.modal-body { padding: 1.5rem; }

.bc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.bc-loading .spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--bc-border);
  border-top-color: var(--bc-primary);
  animation: bcSpin 0.8s linear infinite;
}

@keyframes bcSpin { to { transform: rotate(360deg); } }

.bc-skeleton {
  background: linear-gradient(90deg, var(--bc-surface-2) 25%, var(--bc-surface) 50%, var(--bc-surface-2) 75%);
  background-size: 200% 100%;
  animation: bcShimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes bcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress {
  border-radius: 12px;
  background: var(--bc-surface-2);
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  border-radius: 12px;
  background: var(--bc-primary-gradient);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: bcProgressShine 2s infinite;
}

@keyframes bcProgressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.bc-page {
  animation: bcPageIn 0.35s ease;
}

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

.bc-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--bc-text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--bc-border-light);
  margin-top: 2rem;
  position: relative;
}

.bc-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bc-primary), transparent);
  border-radius: 2px;
}

.nav-tabs {
  border-bottom: 2px solid var(--bc-border);
  gap: 4px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--bc-text-secondary);
  padding: 0.7rem 1.2rem;
  transition: all var(--bc-transition);
  position: relative;
}

.nav-tabs .nav-link:hover {
  color: var(--bc-text);
  background: var(--bc-surface-2);
}

.nav-tabs .nav-link.active {
  color: var(--bc-primary);
  background: transparent;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bc-primary-gradient);
  border-radius: 2px;
}

.list-group-item {
  border: 1px solid var(--bc-border);
  border-radius: 12px !important;
  margin-bottom: 4px;
  background: var(--bc-surface);
  color: var(--bc-text);
  transition: all var(--bc-transition-fast);
  padding: 1rem 1.25rem;
}

.list-group-item:hover {
  border-color: var(--bc-primary);
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}

.dropdown-menu {
  border: 1px solid var(--bc-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 0.5rem;
  animation: bcDropdownIn 0.2s ease;
  background: var(--bc-surface);
}

.dropdown-item {
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--bc-transition-fast);
  color: var(--bc-text);
}

.dropdown-item:hover {
  background: var(--bc-primary-soft);
  color: var(--bc-primary);
}

/* ===== SIDEBAR & GLASS TOPBAR ===== */
.bc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bc-border);
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  transition: background var(--bc-transition);
}

[data-bs-theme="dark"] .bc-topbar {
  background: rgba(15,15,35,0.8);
  border-bottom-color: rgba(42,42,80,0.5);
}

.bc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--bc-text);
  letter-spacing: -0.5px;
  transition: color var(--bc-transition-fast);
}

.bc-brand:hover { color: var(--bc-primary); }

.bc-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: var(--bc-primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.bc-topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(99,102,241,0.06);
  color: var(--bc-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--bc-transition-fast);
  font-size: 1.05rem;
}

.bc-topbar-btn:hover {
  background: rgba(99,102,241,0.12);
  color: var(--bc-primary);
}

.bc-topbar-btn.dropdown-toggle::after { display: none; }

/* Sidebar */
.bc-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  width: 250px;
  height: calc(100vh - 64px);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--bc-border);
  z-index: 1020;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] .bc-sidebar {
  background: rgba(15,15,35,0.65);
  border-right-color: rgba(42,42,80,0.5);
}

.bc-sidebar::-webkit-scrollbar { width: 3px; }
.bc-sidebar::-webkit-scrollbar-thumb { background: var(--bc-border); border-radius: 4px; }

.bc-sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.bc-sidebar-footer {
  padding: 0.5rem 0;
  border-top: 1px solid var(--bc-border);
  flex-shrink: 0;
}

.bc-sidebar-section {
  padding: 0.6rem 1.25rem 0.3rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bc-text-muted);
}

.bc-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.55rem 1.25rem;
  color: var(--bc-text-secondary);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
  user-select: none;
}

.bc-sidebar-item:hover {
  color: var(--bc-primary);
  background: rgba(99,102,241,0.05);
  border-left-color: var(--bc-primary);
}

.bc-sidebar-item.active {
  color: var(--bc-primary);
  background: rgba(99,102,241,0.08);
  border-left-color: var(--bc-primary);
  font-weight: 600;
}

.bc-sidebar-item i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.bc-sidebar-item .bi-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  width: auto;
}

.bc-sidebar-trigger[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.bc-sidebar-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.45rem 1.25rem 0.45rem 3rem;
  color: var(--bc-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.bc-sidebar-sub:hover {
  color: var(--bc-primary);
  background: rgba(99,102,241,0.04);
}

.bc-sidebar-sub.active {
  color: var(--bc-primary);
  font-weight: 500;
}

.bc-sidebar-sub i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.bc-sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--bc-border) 0%, transparent 100%);
  margin: 0.4rem 1.25rem;
}

.god-badge {
  font-size: 0.5rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  line-height: 1.4;
}

/* Main content */
.bc-main {
  margin-left: 250px;
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  padding: 1.5rem 2rem;
  transition: margin-left 0.3s ease;
}

.bc-main-full {
  margin-left: 0;
  margin-top: 0;
  min-height: 100vh;
  padding: 1.5rem 2rem;
}

.bc-login-page .bc-main-full {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
}

.bc-login-page .bc-footer,
.bc-login-page .bc-bottom-nav,
.bc-login-page .bc-breadcrumb {
  display: none !important;
}

[data-bs-theme="dark"] .bc-main,
[data-bs-theme="dark"] .bc-main-full {
  background: transparent;
}

/* Sidebar toggle */
.bc-sidebar-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(99,102,241,0.06);
  color: var(--bc-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--bc-transition-fast);
  font-size: 1.2rem;
}

.bc-sidebar-toggle:hover {
  background: rgba(99,102,241,0.12);
  color: var(--bc-primary);
}

.bc-sidebar-overlay-close {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1019;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Responsive sidebar */
@media (max-width: 992px) {
  .bc-sidebar {
    transform: translateX(-100%);
  }
  .bc-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.1);
  }
  .bc-sidebar.open .bc-sidebar-overlay-close {
    display: block;
  }
  .bc-main {
    margin-left: 0;
  }
  .bc-topbar .bc-search-bar { display: none !important; }
}

@media (max-width: 768px) {
  .bc-navbar .navbar-brand .brand-sub { display: none; }
  .bc-main, .bc-main-full { padding: 0.75rem 1rem; }
  .bc-stat-card .stat-value { font-size: 1.4rem; }
  .card-body { padding: 1.15rem; }
  .table th, .table td { padding: 0.6rem 0.75rem; }
  .bc-login-card { padding: 2rem 1.5rem; margin: 1rem; border-radius: 20px; }
  .bc-sidebar-section { padding: 0.4rem 1rem 0.2rem; font-size: 0.55rem; }
  .bc-sidebar-item { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .bc-sidebar-sub { padding: 0.4rem 1rem 0.4rem 2.5rem; font-size: 0.78rem; }
}

@media print {
  .bc-topbar, .bc-sidebar, .bc-navbar, .bc-footer, .no-print { display: none !important; }
  .bc-main { margin-left: 0 !important; margin-top: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  body { background: #fff !important; }
}

/* ═══ v2.0 — Professional polish layer ═══ */

/* Auth pages — light theme (v2 overrides kept dark-safe) */
.bc-login-link {
  color: var(--bc-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.bc-login-link:hover { color: var(--bc-primary); }
.bc-register-card { max-height: 92vh; overflow-y: auto; }
.bc-register-card .form-label { color: var(--bc-text-secondary); font-size: 0.82rem; font-weight: 600; }
.bc-register-card .form-section-divider { margin: 1.1rem 0 0.8rem; }
.bc-form-section {
  color: var(--bc-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 1.1rem 0 0.9rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bc-border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-form-section i { color: var(--bc-primary); }

/* Avatar */
.bc-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--bc-primary), var(--bc-purple));
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
  flex-shrink: 0;
}
.bc-avatar-lg { width: 42px; height: 42px; font-size: 0.95rem; }
.bc-avatar-sm { width: 28px; height: 28px; font-size: 0.68rem; }
.bc-avatar-success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 2px 8px rgba(16,185,129,0.35); }
.bc-avatar-warning { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 8px rgba(245,158,11,0.35); }
.bc-avatar-danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 2px 8px rgba(239,68,68,0.35); }
.bc-avatar-info { background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 2px 8px rgba(14,165,233,0.35); }
.bc-avatar-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 2px 8px rgba(20,184,166,0.35); }

/* Company chip */
.bc-company-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  color: var(--bc-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
  max-width: 260px;
  white-space: nowrap;
}
.bc-company-chip i { font-size: 0.85rem; }
.bc-company-chip span { overflow: hidden; text-overflow: ellipsis; }
.bc-company-chip .chip-role {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--bc-primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
}

/* User dropdown */
.bc-user-menu { min-width: 250px; border: 1px solid var(--bc-border); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); padding: 8px; }
.bc-user-menu .dropdown-item { border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; }
.bc-user-menu .dropdown-item i { width: 20px; text-align: center; margin-right: 4px; color: var(--bc-text-secondary); }
.bc-user-menu .dropdown-item:hover i { color: var(--bc-primary); }
.bc-user-menu .dropdown-item.text-danger:hover i { color: var(--bc-danger); }

/* Page header */
.bc-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bc-page-header .page-title { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.bc-page-header .page-title i {
  color: var(--bc-primary);
  margin-right: 10px;
  background: rgba(99,102,241,0.1);
  border-radius: 12px;
  padding: 8px;
  font-size: 1.1rem;
  vertical-align: -3px;
}
.bc-page-header .page-subtitle { color: var(--bc-text-muted); font-size: 0.86rem; margin: 4px 0 0; }
.bc-page-header .page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Quick action tiles */
.bc-quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
.bc-quick-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 1.15rem;
  border-radius: var(--bc-card-radius);
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  text-decoration: none;
  color: var(--bc-text);
  transition: all var(--bc-transition);
  position: relative;
  overflow: hidden;
}
.bc-quick-action::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--bc-transition-fast);
}
.bc-quick-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--bc-card-shadow-hover);
  border-color: transparent;
  color: var(--bc-text);
}
.bc-quick-action:hover::after { opacity: 1; }
.bc-quick-action .qa-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(99,102,241,0.1);
  color: var(--bc-primary);
}
.bc-quick-action .qa-label { font-size: 0.85rem; font-weight: 700; }
.bc-quick-action .qa-hint { font-size: 0.7rem; color: var(--bc-text-muted); }
.bc-quick-action.qa-primary::after { background: var(--bc-primary-gradient); }
.bc-quick-action.qa-primary .qa-icon { background: rgba(99,102,241,0.1); color: var(--bc-primary); }
.bc-quick-action.qa-success::after { background: var(--bc-success-gradient); }
.bc-quick-action.qa-success .qa-icon { background: rgba(16,185,129,0.1); color: var(--bc-success); }
.bc-quick-action.qa-info::after { background: var(--bc-info-gradient); }
.bc-quick-action.qa-info .qa-icon { background: rgba(6,182,212,0.1); color: var(--bc-info); }
.bc-quick-action.qa-warning::after { background: var(--bc-warning-gradient); }
.bc-quick-action.qa-warning .qa-icon { background: rgba(245,158,11,0.1); color: var(--bc-warning); }
.bc-quick-action.qa-purple::after { background: var(--bc-purple-gradient); }
.bc-quick-action.qa-purple .qa-icon { background: rgba(168,85,247,0.1); color: var(--bc-purple); }
.bc-quick-action.qa-teal::after { background: var(--bc-teal-gradient); }
.bc-quick-action.qa-teal .qa-icon { background: rgba(20,184,166,0.1); color: var(--bc-teal); }
.bc-quick-action.qa-orange::after { background: var(--bc-orange-gradient); }
.bc-quick-action.qa-orange .qa-icon { background: rgba(249,115,22,0.1); color: var(--bc-orange); }

/* Table refinements */
.table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bc-text-muted);
  font-weight: 700;
  border-bottom-width: 1px;
  white-space: nowrap;
}
.table-hover tbody tr { transition: background var(--bc-transition-fast); }
.card .table-responsive { border-radius: 0 0 calc(var(--bc-card-radius) - 1px) calc(var(--bc-card-radius) - 1px); }

/* Breadcrumb */
.bc-breadcrumb {
  font-size: 0.8rem;
  color: var(--bc-text-muted);
  margin-bottom: 1rem;
}
.bc-breadcrumb a { color: var(--bc-primary); text-decoration: none; font-weight: 600; }
.bc-breadcrumb .separator { margin: 0 8px; opacity: 0.5; }
.bc-breadcrumb .current { font-weight: 600; color: var(--bc-text-secondary); }

/* Stat card extra: bottom trend row aligned */
.bc-stat-card .stat-footer { display: flex; align-items: center; gap: 8px; margin-top: 0.9rem; }
.bc-stat-card .stat-compare { font-size: 0.75rem; color: var(--bc-text-muted); }

/* Buttons: subtle icon spacing + focus ring */
.btn i { margin-right: 5px; }
.btn:focus-visible, .form-control:focus { box-shadow: 0 0 0 3px rgba(99,102,241,0.18); }

/* Card header refinement */
.card-header span { display: inline-flex; align-items: center; }
.card-header span i { font-size: 0.95rem; }

/* Toast refinement */
.toast { border: none; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.toast-header { border: none; border-radius: 14px 14px 0 0; }

/* Dark theme adjusments */
[data-bs-theme="dark"] .bc-company-chip { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.3); }
[data-bs-theme="dark"] .bc-user-menu { background: #1e2432; }
[data-bs-theme="dark"] .bc-quick-action { background: #1a1f2b; border-color: #2a3140; }
