/* ==========================================================================
   Acraltech CRM - Mature Enterprise Theme Design System
   Executive FinTech Grade UI · Modern Neutral Contrast · Polished Micro-Interactions
   Non-Destructive Visual Layer (Preserves 100% of functional logic)
   ========================================================================== */

/* 1. Global Typography & Core Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --mature-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mature-font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --mature-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --mature-bg-canvas: #f8fafc;
  --mature-bg-card: #ffffff;
  --mature-border-subtle: #e2e8f0;
  --mature-border-card: #e2e8f0;
  
  --mature-primary: #2563eb;
  --mature-primary-hover: #1d4ed8;
  --mature-primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  --mature-primary-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.dark {
  --mature-bg-canvas: #0b0f19;
  --mature-bg-card: #111827;
  --mature-border-subtle: rgba(255, 255, 255, 0.08);
  --mature-border-card: rgba(255, 255, 255, 0.12);
  
  --mature-primary: #3b82f6;
  --mature-primary-hover: #60a5fa;
  --mature-primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --mature-primary-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

body {
  font-family: var(--mature-font-sans) !important;
  letter-spacing: -0.011em !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* ==========================================================================
   2. AUTHENTICATION & LOGIN SCREENS (Instant Striking Enterprise Polish)
   ========================================================================== */

/* Page Background for Auth Layout */
body:has(.auth-wrap),
body:has(.w-full.max-w-md),
.min-h-screen.bg-gray-50,
body.bg-gray-50 {
  background: radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.03) 0px, transparent 50%),
              #f8fafc !important;
}

.dark body:has(.auth-wrap),
.dark body:has(.w-full.max-w-md),
.dark .min-h-screen.bg-gray-50,
.dark body.bg-gray-50 {
  background: radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.6) 0px, transparent 50%),
              #0b0f19 !important;
}

/* Auth Top Header Bar */
header.relative.bg-white,
header.relative.border-b {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--mature-border-subtle) !important;
}

.dark header.relative.bg-white,
.dark header.relative.border-b {
  background: rgba(11, 15, 25, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Overwrite Flashy Purple Logo Container with Modern Navy Badge */
header a div[class*="from-purple-600"],
div[class*="from-purple-600"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%) !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25) !important;
  border-radius: 12px !important;
}

/* Executive Day/Night Theme Shifter for Auth Screen */
.theme-toggle {
  width: 52px !important;
  height: 28px !important;
  border-radius: 9999px !important;
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  padding: 2px !important;
  position: relative !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.dark .theme-toggle,
.theme-toggle.dark {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.theme-toggle::before {
  content: '' !important;
  position: absolute !important;
  top: 2px !important;
  left: 3px !important;
  width: 22px !important;
  height: 22px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.2) !important;
  transform: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
  z-index: 2 !important;
}

.dark .theme-toggle::before,
.theme-toggle.dark::before {
  transform: translateX(24px) !important;
  left: 3px !important;
  background: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.35) !important;
}

.theme-toggle-icon {
  font-size: 13px !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 1 !important;
  transition: opacity 0.2s ease, color 0.2s ease !important;
  line-height: 1 !important;
}

.sun-icon {
  left: 7px !important;
  color: #f59e0b !important;
  opacity: 0.9 !important;
}

.moon-icon {
  right: 7px !important;
  color: #94a3b8 !important;
  opacity: 0.45 !important;
}

.dark .sun-icon,
.theme-toggle.dark .sun-icon {
  opacity: 0.35 !important;
  color: #64748b !important;
  transform: translateY(-50%) !important;
}

.dark .moon-icon,
.theme-toggle.dark .moon-icon {
  opacity: 0.95 !important;
  color: #93c5fd !important;
  transform: translateY(-50%) !important;
}

/* Auth Form Floating Card */
.w-full.max-w-md {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.03) !important;
  padding: 38px 34px !important;
  margin-top: 20px !important;
  margin-bottom: 30px !important;
}

.dark .w-full.max-w-md {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Auth Title & Headers */
.w-full.max-w-md h1 {
  font-family: var(--mature-font-display) !important;
  font-weight: 800 !important;
  font-size: 26px !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
}

.dark .w-full.max-w-md h1 {
  color: #f8fafc !important;
}

.w-full.max-w-md p.text-gray-600,
.w-full.max-w-md p.text-gray-500 {
  color: #64748b !important;
  font-size: 13.5px !important;
}

.dark .w-full.max-w-md p.text-gray-600,
.dark .w-full.max-w-md p.text-gray-500 {
  color: #94a3b8 !important;
}

/* Auth Inputs */
.w-full.max-w-md input[type="text"],
.w-full.max-w-md input[type="password"],
.w-full.max-w-md input[type="email"] {
  height: 48px !important;
  padding-left: 44px !important;
  padding-right: 16px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  transition: all 0.15s ease-in-out !important;
}

.dark .w-full.max-w-md input[type="text"],
.dark .w-full.max-w-md input[type="password"],
.dark .w-full.max-w-md input[type="email"] {
  background-color: #0b0f19 !important;
  border: 1.5px solid #334155 !important;
  color: #f8fafc !important;
}

.w-full.max-w-md input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14) !important;
  outline: none !important;
}

.dark .w-full.max-w-md input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}

/* Overwrite Flashy Purple Submit Button with Executive Blue Gradient */
.w-full.max-w-md button[type="submit"],
button[class*="from-purple-600"] {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
  border-radius: 10px !important;
  height: 48px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  border: none !important;
  color: #ffffff !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.w-full.max-w-md button[type="submit"]:hover,
button[class*="from-purple-600"]:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42) !important;
}

.w-full.max-w-md button[type="submit"]:active,
button[class*="from-purple-600"]:active {
  transform: translateY(1px) !important;
}

/* Overwrite Purple Links & Focus Accents */
a[class*="text-purple-"],
a.text-purple-600 {
  color: #2563eb !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}

a[class*="text-purple-"]:hover,
a.text-purple-600:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.dark a[class*="text-purple-"],
.dark a.text-purple-600 {
  color: #60a5fa !important;
}

input[type="checkbox"][class*="text-purple-"] {
  accent-color: #2563eb !important;
}

/* ==========================================================================
   3. EXECUTIVE SIDEBAR (Admin & Agent Portals)
   ========================================================================== */

/* Admin Portal Sidebar Header */
.sidebar-gradient {
  background: linear-gradient(135deg, #0b1120 0%, #172554 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.dark .sidebar-gradient {
  background: linear-gradient(135deg, #070d19 0%, #0f172a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Agent Portal Sidebar Header */
.agent-portal .sidebar-gradient,
body:has(a[href*="agent"]) .sidebar-gradient {
  background: linear-gradient(135deg, #064e3b 0%, #0b1120 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Sidebar Shell */
.fixed.inset-y-0.left-0 {
  background-color: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.03) !important;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dark .fixed.inset-y-0.left-0 {
  background-color: #0b1120 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.4) !important;
}

/* Sidebar Navigation Items */
nav.scrollbar-thin a {
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  margin-bottom: 4px !important;
  color: #64748b !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dark nav.scrollbar-thin a {
  color: #94a3b8 !important;
}

nav.scrollbar-thin a:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.dark nav.scrollbar-thin a:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
}

/* Active Nav Item Indicator */
nav.scrollbar-thin a[class*="bg-blue-100"],
nav.scrollbar-thin a[class*="bg-blue-900"],
nav.scrollbar-thin a[class*="text-blue-700"] {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.02) 100%) !important;
  color: #2563eb !important;
  font-weight: 600 !important;
  border-left: 3.5px solid #2563eb !important;
  border-radius: 0 8px 8px 0 !important;
}

.dark nav.scrollbar-thin a[class*="bg-blue-100"],
.dark nav.scrollbar-thin a[class*="bg-blue-900"],
.dark nav.scrollbar-thin a[class*="text-blue-300"] {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.02) 100%) !important;
  color: #60a5fa !important;
  border-left: 3.5px solid #3b82f6 !important;
  border-radius: 0 8px 8px 0 !important;
}

/* Sidebar Footer Passcode Generator Widget */
.fixed.inset-y-0.left-0 .border-t {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  background-color: rgba(0, 0, 0, 0.015) !important;
}

.dark .fixed.inset-y-0.left-0 .border-t {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
}

.fixed.inset-y-0.left-0 .border-t .bg-white {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.dark .fixed.inset-y-0.left-0 .border-t .bg-white {
  background: #080d1a !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.12) !important;
}

.fixed.inset-y-0.left-0 .border-t .bg-white span {
  font-family: var(--mature-font-mono) !important;
  font-weight: 800 !important;
  font-size: 19px !important;
  letter-spacing: 0.12em !important;
  color: #2563eb !important;
}

.dark .fixed.inset-y-0.left-0 .border-t .bg-white span {
  color: #60a5fa !important;
}

/* ==========================================================================
   4. TOP NAVIGATION BAR
   ========================================================================== */
.sticky.top-0.z-40 {
  background-color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.dark .sticky.top-0.z-40 {
  background-color: rgba(11, 17, 32, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
}

/* User Menu & Dropdown */
.sticky.top-0.z-40 img.rounded-full {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
  transition: transform 0.15s ease !important;
}

/* ==========================================================================
   5. EXECUTIVE METRIC CARDS & KPIS
   ========================================================================== */
.metric-card,
div[class*="backdrop-blur-sm"] {
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dark .metric-card,
.dark div[class*="backdrop-blur-sm"] {
  background-color: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.metric-card:hover,
div[class*="backdrop-blur-sm"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08) !important;
}

.dark .metric-card:hover,
.dark div[class*="backdrop-blur-sm"]:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Metric KPI Figures */
[data-metric],
.metric-card p.text-3xl,
div[class*="backdrop-blur-sm"] p.text-3xl {
  font-family: var(--mature-font-display) !important;
  font-weight: 800 !important;
  font-size: 30px !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: #0f172a !important;
}

.dark [data-metric],
.dark .metric-card p.text-3xl,
.dark div[class*="backdrop-blur-sm"] p.text-3xl {
  color: #f8fafc !important;
}

/* Metric Icon Badges */
div[class*="bg-gradient-to-br"] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   6. ENTERPRISE DATA TABLES & RECORD MANAGEMENT
   ========================================================================== */

/* Table Outer Shell Card */
.leads-table-section,
.overflow-x-auto:has(table) {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.03) !important;
  overflow: hidden !important;
  margin-top: 16px !important;
}

.dark .leads-table-section,
.dark .overflow-x-auto:has(table) {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

thead th {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #475569 !important;
  padding: 13px 16px !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

.dark thead th {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

tbody td {
  padding: 13px 16px !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.dark tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

tbody tr:hover {
  background-color: #f8fafc !important;
}

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

/* Monospace Numbers (Phone & DIDs) */
td:has([href*="lead"]),
td:has([href*="details"]),
.font-mono,
[data-phone] {
  font-family: var(--mature-font-mono) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

/* Action Buttons (Filters, Export, Update Leads) */
#toggleFiltersBtn,
button[onclick*="updateLeadsModal"],
button:has(svg),
button[type="submit"]:has(svg) {
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Filter Panel Container */
#filtersPanel > div {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  background: #ffffff !important;
}

.dark #filtersPanel > div {
  background-color: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.filter-compact {
  height: 38px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  transition: all 0.15s ease !important;
}

.dark .filter-compact {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}

.filter-compact:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

/* ==========================================================================
   7. FORM CARDS & INPUT CONTROLS
   ========================================================================== */
.form-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.dark .form-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
}

.form-input,
form input[type="text"]:not(.filter-compact),
form input[type="tel"],
form input[type="email"],
form select:not(.filter-compact),
form textarea {
  border-radius: 9px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  padding: 9px 14px !important;
  transition: all 0.15s ease !important;
}

.dark .form-input,
.dark form input[type="text"]:not(.filter-compact),
.dark form input[type="tel"],
.dark form input[type="email"],
.dark form select:not(.filter-compact),
.dark form textarea {
  background-color: #0f172a !important;
  border: 1.5px solid #334155 !important;
  color: #f8fafc !important;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

/* Primary Action Buttons */
button.bg-blue-600,
a.bg-blue-600,
button.bg-indigo-600,
button.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
}

button.bg-blue-600:hover,
a.bg-blue-600:hover,
button.bg-indigo-600:hover,
button.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

/* ==========================================================================
   8. STATUS PILLS & BADGES
   ========================================================================== */
span[class*="bg-green-100"],
span[class*="text-green-800"] {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
}

span[class*="bg-yellow-100"],
span[class*="text-yellow-800"] {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
}

span[class*="bg-purple-100"],
span[class*="text-purple-800"] {
  background-color: rgba(139, 92, 246, 0.12) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
}

span[class*="bg-red-100"],
span[class*="text-red-800"] {
  background-color: rgba(244, 63, 94, 0.12) !important;
  color: #e11d48 !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
}

/* ==========================================================================
   9. MODALS & DIALOGS
   ========================================================================== */
dialog::backdrop {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

dialog {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
  border-radius: 16px !important;
}

/* ==========================================================================
   10. SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3) !important;
  border-radius: 9999px !important;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2) !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5) !important;
}
