/*
 * BGFIBank Admin Theme
  * Primary:   #013b6b  (rgb 1 59 107)
 * Secondary: Pantone 5783 C → #99C780  (rgb 153 199 128)
 *
 * Unfold uses its own CSS classes (bg-base-50, text-primary-600, etc.)
 * derived from the UNFOLD["COLORS"] Django settings. The CSS variables
 * below are provided as brand references; the selector overrides below
 * them are what actually theme the sidebar.
 */

:root {
  --bgfi-blue:        rgb(1   59  107);   /* #013b6b */
  --bgfi-blue-dark:   rgb(1   50  90);    /* hover / active */
  --bgfi-blue-deeper: rgb(1   40  75);    /* deep accent    */
  --bgfi-green:       rgb(153 199 128);   /* Pantone 5783 C */
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR LOGO — white pill so the colored logo is legible on blue
   The logo PNG has an opaque white background + a stacked layout
   (mark above text). Wrapping in a pill surfaces the logo's own
   colors and bumps the height so both elements are readable.
   ═══════════════════════════════════════════════════════════════════ */

#nav-sidebar-inner a:has(> img) {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 4px 12px;
}

#nav-sidebar-inner a:has(> img) img {
  height: 40px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  margin-right: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR — override Unfold's bg-base-50 with brand blue
   ═══════════════════════════════════════════════════════════════════ */

/* Sidebar panel and inner nav background */
#nav-sidebar,
#nav-sidebar .bg-base-50,
#nav-sidebar-inner {
  background-color: var(--bgfi-blue) !important;
}

/* Sidebar right-edge border */
#nav-sidebar {
  border-right-color: var(--bgfi-blue-dark) !important;
}

/* Sidebar header bottom-border and all inner dividers / hr */
#nav-sidebar .border-b,
#nav-sidebar .border-t,
#nav-sidebar hr {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ── Section headings (e.g. "Plateforme", "Paiements") ─────────── */
#nav-sidebar h2 {
  color: rgba(255, 255, 255, 0.55) !important;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

#nav-sidebar h2 .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ── Nav item links — default state ────────────────────────────── */
#nav-sidebar-inner a {
  color: rgba(255, 255, 255, 0.8) !important;
}

#nav-sidebar-inner a .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ── Nav item links — hover ────────────────────────────────────── */
#nav-sidebar-inner a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: rgb(255, 255, 255) !important;
}

#nav-sidebar-inner a:hover .material-symbols-outlined {
  color: rgb(255, 255, 255) !important;
}

/* ── Nav item links — active ───────────────────────────────────── */
#nav-sidebar-inner a.active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: rgb(255, 255, 255) !important;
  box-shadow: inset 3px 0 0 rgb(255, 255, 255);
}

#nav-sidebar-inner a.active .material-symbols-outlined {
  color: rgb(255, 255, 255) !important;
}

/* ── Search box wrapper (exclude the account popup nav) ────────── */
#nav-sidebar .bg-white:not(nav),
#nav-sidebar-inner .bg-white:not(nav) {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Account / profile popup — restore solid white bg + dark text ─ */
#nav-sidebar-inner nav.bg-white,
#nav-sidebar-inner nav[x-show] {
  background-color: rgb(255, 255, 255) !important;
  border-color: rgb(226, 232, 240) !important;
}

#nav-sidebar-inner nav.bg-white a,
#nav-sidebar-inner nav[x-show] a,
#nav-sidebar-inner nav.bg-white button,
#nav-sidebar-inner nav[x-show] button {
  color: rgb(30, 41, 59) !important;
}

#nav-sidebar-inner nav.bg-white a .material-symbols-outlined,
#nav-sidebar-inner nav[x-show] a .material-symbols-outlined {
  color: rgb(100, 116, 139) !important;
}

#nav-sidebar-inner nav.bg-white .border-t,
#nav-sidebar-inner nav[x-show] .border-t {
  border-color: rgb(226, 232, 240) !important;
}

#nav-sidebar input,
#nav-sidebar-inner input {
  color: rgb(255, 255, 255) !important;
  background-color: transparent !important;
}

#nav-sidebar input::placeholder,
#nav-sidebar-inner input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

#nav-sidebar .material-symbols-outlined.text-base-400 {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* ── User section at bottom ────────────────────────────────────── */
#nav-sidebar-inner .text-important {
  color: rgb(255, 255, 255) !important;
}

#nav-sidebar-inner .text-subtle {
  color: rgba(255, 255, 255, 0.6) !important;
}

#nav-sidebar-inner .text-font-default-light {
  color: rgba(255, 255, 255, 0.7) !important;
}

#nav-sidebar-inner .hover\:bg-base-100:hover,
#nav-sidebar-inner [class*="hover:bg-base"]:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   TOP NAVBAR / HEADER BAR
   ═══════════════════════════════════════════════════════════════════ */

#header {
  background-color: var(--bgfi-blue) !important;
  border-bottom-color: var(--bgfi-blue-dark) !important;
}

#header a,
#header button,
#header .text-font-default-light {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS — primary action buttons
   ═══════════════════════════════════════════════════════════════════ */

.bg-primary-600 {
  background-color: var(--bgfi-blue) !important;
}

.bg-primary-600:hover,
.hover\:bg-primary-700:hover {
  background-color: var(--bgfi-blue-dark) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   STATUS — success uses BGFIBank secondary green
   ═══════════════════════════════════════════════════════════════════ */

.text-success-600,
.text-green-600 {
  color: var(--bgfi-green) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   LOGIN PAGE — form side logo
   ═══════════════════════════════════════════════════════════════════ */

.bgfi-form-logo {
  height: 52px;
  width: auto;
  background: white;
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid rgb(226 232 240);
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   LOGIN PAGE — branded right panel
   ═══════════════════════════════════════════════════════════════════ */

.bgfi-login-panel {
  background: linear-gradient(150deg, #013b6b 0%, #012a50 55%, #011a3a 100%);
  position: relative;
  overflow: hidden;
}

/* decorative circles */
.bgfi-login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(153, 199, 128, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.bgfi-login-panel__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.bgfi-login-panel__logo {
  width: 200px;
  height: auto;
  background: white;
  border-radius: 12px;
  padding: 16px 28px;
  margin: 0 auto 2rem;
  display: block;
}

.bgfi-login-panel__tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.bgfi-login-panel__divider {
  width: 40px;
  height: 3px;
  background: rgba(153, 199, 128, 0.7);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

.bgfi-login-panel__caption {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD ICONS — 6 cards: #9bb68e
   ═══════════════════════════════════════════════════════════════════ */

.dashboard-card-icon .material-symbols-outlined.text-base-300 {
  color: #9bb68e !important;
  transform: translateY(-50%) translateX(20px) !important;
  font-size: 1rem !important;
}

.dashboard-card-icon .material-symbols-outlined.text-red-400 {
  color: #ef4444 !important;
  font-size: 1rem !important;
}


