/* YaHooyeyu Mail — Brand Theme Override for Bulwark */

/* Override Bulwark CSS variables globally (works for both light and dark) */
:root,
.dark,
[data-theme],
html {
  --color-background: #0a0e1a !important;
  --color-foreground: #e2e8f0 !important;
  --color-card: #111827 !important;
  --color-card-foreground: #e2e8f0 !important;
  --color-popover: #111827 !important;
  --color-popover-foreground: #e2e8f0 !important;
  --color-primary: #6366f1 !important;
  --color-primary-foreground: #ffffff !important;
  --color-secondary: #1a2235 !important;
  --color-secondary-foreground: #e2e8f0 !important;
  --color-muted: #1a2235 !important;
  --color-muted-foreground: #94a3b8 !important;
  --color-accent: #6366f1 !important;
  --color-accent-foreground: #ffffff !important;
  --color-border: #1e2a3a !important;
  --color-input: #0d1322 !important;
  --color-ring: #6366f1 !important;
  --color-sidebar: #0d1322 !important;
  --color-sidebar-foreground: #e2e8f0 !important;
  --color-sidebar-border: #1e2a3a !important;
  --color-sidebar-accent: rgba(99,102,241,0.15) !important;
  --color-sidebar-accent-foreground: #6366f1 !important;
  --radius: 0.75rem !important;
}

/* Force dark mode on html */
html { background: #0a0e1a !important; color: #e2e8f0 !important; }
body { background: #0a0e1a !important; color: #e2e8f0 !important; }

/* Login page outer wrapper gradient → our dark */
.bg-background { background-color: #0a0e1a !important; }
[class*="from-"][class*="to-"] { background: #0a0e1a !important; }

/* Cards */
.bg-card, [class*="bg-card"] { background-color: #111827 !important; }

/* Borders */
.border, [class*="border-border"] { border-color: #1e2a3a !important; }

/* Inputs */
input:not([type=submit]):not([type=button]) {
  background-color: #0d1322 !important;
  border-color: #1e2a3a !important;
  color: #e2e8f0 !important;
}
input::placeholder { color: #475569 !important; }
input:focus { border-color: #6366f1 !important; outline: none !important; }

/* Primary buttons → indigo gradient */
.bg-primary, button.bg-primary, [class*="bg-primary"] {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
}
.text-primary-foreground { color: #fff !important; }

/* Text */
.text-foreground, [class*="text-foreground"] { color: #e2e8f0 !important; }
.text-muted-foreground, [class*="text-muted-foreground"] { color: #94a3b8 !important; }
.text-card-foreground { color: #e2e8f0 !important; }

/* Sidebar */
.bg-sidebar, [class*="bg-sidebar"] { background-color: #0d1322 !important; }
.border-sidebar-border { border-color: #1e2a3a !important; }

/* Hide version footer (v1.8.1) and System theme button */
footer { display: none !important; }

/* Hide the top-right "System" theme picker entirely */
body > div > div > button:last-child:not([class*="login"]),
[aria-label="Toggle theme"],
[data-state][aria-haspopup] { display: none !important; }

/* Hide version string */
*:not(script):not(style) { }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #1e2a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }
* { scrollbar-color: #1e2a3a #0a0e1a; scrollbar-width: thin; }

/* Hover states */
.hover\:bg-accent:hover, [class*="hover:bg-accent"]:hover { background-color: rgba(99,102,241,0.15) !important; }
.hover\:bg-muted:hover { background-color: #1a2235 !important; }

/* Selection */
::selection { background: rgba(99,102,241,0.3); color: #e2e8f0; }

/* Ring/focus */
.ring-ring, [class*="ring-ring"] { --tw-ring-color: #6366f1; }
