/* ============================================================
   BMGroup CRM — Visual Enhancement Layer
   Injected over compiled Tailwind build
   ============================================================ */

/* ── 1. GLOBAL TYPOGRAPHY & RENDERING ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body, #root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

::selection {
  background: rgba(228, 242, 34, 0.18);
  color: #f7f8f8;
}

/* ── 2. SCROLLBARS ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2a2d33;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #3d4149; }
::-webkit-scrollbar-corner { background: transparent; }

/* ── 3. SIDEBAR ────────────────────────────────────────────── */
aside {
  background: #080909 !important;
  border-right-color: rgba(255,255,255,0.05) !important;
}

/* Logo — ScoutSales */
aside span.text-\[\#e4f222\] {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: 15px !important;
}

/* User block */
aside .bg-\[\#161718\] {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 8px !important;
}

/* Nav item base */
aside button {
  border-radius: 6px !important;
  font-size: 13px !important;
}

/* ACTIVE nav item — accent left border + subtle gradient */
aside button.bg-\[\#23252a\] {
  background: linear-gradient(90deg,
    rgba(228,242,34,0.1) 0%,
    rgba(228,242,34,0.03) 100%) !important;
  border-left: 2px solid #e4f222 !important;
  padding-left: calc(0.625rem - 2px) !important;
  color: #f7f8f8 !important;
  font-weight: 500 !important;
}

/* Inactive nav hover */
aside button:not(.bg-\[\#23252a\]):hover {
  background: rgba(255,255,255,0.04) !important;
}

/* ── 4. CARDS ──────────────────────────────────────────────── */
.bg-\[\#0f1011\] {
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

/* Border glow on hover */
.bg-\[\#0f1011\]:hover {
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 4px 20px rgba(0,0,0,0.5) !important;
}

/* ── 5. STATUS BADGES ──────────────────────────────────────── */

/* Base badge — tighter, more readable */
.inline-flex.items-center.rounded-\[32px\].border.text-\[11px\].font-semibold {
  padding: 2px 9px 2px 7px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  gap: 4px;
}

/* Dot before badge text */
.border-emerald-500\/30::before,
.border-amber-500\/30::before,
.border-amber-500\/35::before,
.border-rose-500\/30::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 1px;
}

.border-emerald-500\/30::before { background: #10b981; box-shadow: 0 0 4px rgba(16,185,129,0.6); }
.border-amber-500\/30::before,
.border-amber-500\/35::before  { background: #f59e0b; box-shadow: 0 0 4px rgba(245,158,11,0.6); }
.border-rose-500\/30::before   { background: #f43f5e; box-shadow: 0 0 4px rgba(244,63,94,0.5); }

/* ── 6. TABLE ──────────────────────────────────────────────── */

/* Header row */
thead tr {
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

thead th {
  color: #4d5159 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding-bottom: 10px !important;
}

/* Body rows */
tbody tr {
  transition: background-color 0.1s ease;
  border-bottom: 1px solid rgba(255,255,255,0.025) !important;
}

tbody tr:hover {
  background-color: rgba(255,255,255,0.028) !important;
}

tbody tr:last-child {
  border-bottom: none !important;
}

/* Table cell text */
tbody td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* ── 7. PAGE TITLES ────────────────────────────────────────── */

/* Main page heading (e.g. "Girls", "Sales", "Dashboard") */
.text-2xl.font-semibold {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
  color: #f7f8f8 !important;
}

/* Subtitle under page heading */
.text-2xl.font-semibold + .text-sm {
  margin-top: 1px;
  color: #4a4e58 !important;
  font-size: 12px !important;
}

/* Dashboard big numbers */
.text-3xl.font-semibold.tracking-tight {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
}

/* KPI 4-card metric numbers */
.text-2xl.font-bold.tabular-nums {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

/* ── 8. KPI CARDS — colored accent borders ─────────────────── */

/* KPI grid container → 4 cards in a row */
.grid-cols-2.gap-3 > div:nth-child(1),
.gap-3 > div:nth-child(1).bg-\[\#0f1011\] {
  border-top: 1.5px solid rgba(251,191,36,0.5) !important;
}
.grid-cols-2.gap-3 > div:nth-child(2),
.gap-3 > div:nth-child(2).bg-\[\#0f1011\] {
  border-top: 1.5px solid rgba(96,165,250,0.5) !important;
}
.grid-cols-2.gap-3 > div:nth-child(3),
.gap-3 > div:nth-child(3).bg-\[\#0f1011\] {
  border-top: 1.5px solid rgba(251,146,60,0.5) !important;
}
.grid-cols-2.gap-3 > div:nth-child(4),
.gap-3 > div:nth-child(4).bg-\[\#0f1011\] {
  border-top: 1.5px solid rgba(52,211,153,0.5) !important;
}

/* ── 9. PROGRESS BARS ──────────────────────────────────────── */
.bg-emerald-500.rounded-\[32px\] {
  box-shadow: 0 0 8px rgba(16,185,129,0.35);
}

/* ── 10. BAR CHART ─────────────────────────────────────────── */

/* Inactive bars */
.w-full.rounded-\[3px\].transition-all.duration-500 {
  background: linear-gradient(180deg, #2d3139 0%, #1e2128 100%) !important;
}

/* ── 11. INPUTS ────────────────────────────────────────────── */

input, select, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Search bar at top */
.h-7.rounded-\[32px\] {
  background: rgba(255,255,255,0.025) !important;
  border-color: rgba(255,255,255,0.06) !important;
  transition: border-color 0.15s, background 0.15s !important;
}

.h-7.rounded-\[32px\]:focus {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* ── 12. BUTTONS ───────────────────────────────────────────── */
button {
  transition: color 0.12s ease, background-color 0.12s ease,
              border-color 0.12s ease, opacity 0.12s ease,
              box-shadow 0.12s ease !important;
}

/* Ghost action buttons in tables (Pending / Paid / Cancel) */
button.cursor-pointer.focus\:outline-none {
  border-radius: 5px !important;
}

/* ── 13. FILTER TABS (ALL / PAID / PENDING / CANCELED) ──────── */
/* These are the tab buttons at top of Sales */
.rounded-\[6px\].border.border-\[\#23252a\].bg-\[\#161718\] {
  transition: background 0.12s, border-color 0.12s !important;
}

.rounded-\[6px\].border.border-\[\#23252a\].bg-\[\#161718\]:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* ── 14. MODALS ────────────────────────────────────────────── */
.fixed.inset-0.z-50.flex .bg-\[\#0f1011\] {
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) !important;
}

/* ── 15. SECTION DIVIDERS ───────────────────────────────────── */
/* Horizontal separator between girl groups in Sales table */
.border-b.border-\[\#23252a\] {
  border-bottom-color: rgba(255,255,255,0.04) !important;
}

/* ── 16. MISC POLISH ────────────────────────────────────────── */

/* Chevron icons in Finance accordion */
.ml-auto.transition-transform {
  transition: transform 0.2s ease !important;
}

/* Outreach conversion bars */
.h-full.rounded-\[32px\].bg-\[\#3a3d44\] {
  background: linear-gradient(90deg, #2d3139, #3a3d44) !important;
}

/* Girl card status color squares at top */
.flex.flex-col.items-center.rounded-\[6px\].border {
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}

.flex.flex-col.items-center.rounded-\[6px\].border:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.12) !important;
}
