/* Black and White Theme Override */

/* Reset all colors to black and white */
* {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Main background */
html,
body,
#root {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* All text elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
select,
label {
  color: #ffffff !important;
}

/* Background elements with semi-transparent gray */
div[class*="bg-"]:not(body):not(#root):not(html) {
  background-color: rgba(128, 128, 128, 0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(128, 128, 128, 0.2) !important;
}

/* Cards and containers */
div[class*="rounded"],
div[class*="border"],
div[class*="card"],
div[class*="container"] {
  background-color: rgba(128, 128, 128, 0.15) !important;
  border-color: rgba(128, 128, 128, 0.3) !important;
}

/* Buttons */
button,
.btn,
[role="button"] {
  background-color: rgba(128, 128, 128, 0.2) !important;
  border-color: rgba(128, 128, 128, 0.4) !important;
  color: #ffffff !important;
}

button:hover,
.btn:hover,
[role="button"]:hover {
  background-color: rgba(128, 128, 128, 0.3) !important;
  border-color: rgba(128, 128, 128, 0.6) !important;
}

/* Input fields */
input,
textarea,
select,
.input,
.form-control {
  background-color: rgba(128, 128, 128, 0.1) !important;
  border-color: rgba(128, 128, 128, 0.3) !important;
  color: #ffffff !important;
}

input:focus,
textarea:focus,
select:focus,
.input:focus,
.form-control:focus {
  border-color: rgba(128, 128, 128, 0.6) !important;
  outline-color: rgba(128, 128, 128, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.2) !important;
}

/* Links */
a,
.link {
  color: #ffffff !important;
  text-decoration-color: rgba(128, 128, 128, 0.5) !important;
}

a:hover,
.link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration-color: rgba(128, 128, 128, 0.8) !important;
}

/* Override all colored backgrounds */
[class*="bg-green"],
[class*="bg-red"],
[class*="bg-blue"],
[class*="bg-yellow"],
[class*="bg-purple"],
[class*="bg-cyan"],
[class*="bg-orange"],
[class*="bg-pink"],
[class*="bg-indigo"],
[class*="bg-teal"],
[class*="bg-emerald"],
[class*="bg-lime"],
[class*="bg-amber"],
[class*="bg-rose"],
[class*="bg-violet"],
[class*="bg-fuchsia"],
[class*="bg-sky"],
[class*="bg-slate"],
[class*="bg-zinc"],
[class*="bg-neutral"],
[class*="bg-stone"],
[class*="bg-gray"] {
  background-color: rgba(128, 128, 128, 0.2) !important;
}

/* Override all colored text */
[class*="text-green"],
[class*="text-red"],
[class*="text-blue"],
[class*="text-yellow"],
[class*="text-purple"],
[class*="text-cyan"],
[class*="text-orange"],
[class*="text-pink"],
[class*="text-indigo"],
[class*="text-teal"],
[class*="text-emerald"],
[class*="text-lime"],
[class*="text-amber"],
[class*="text-rose"],
[class*="text-violet"],
[class*="text-fuchsia"],
[class*="text-sky"],
[class*="text-slate"],
[class*="text-zinc"],
[class*="text-neutral"],
[class*="text-stone"],
[class*="text-gray"] {
  color: #ffffff !important;
}

/* Override all colored borders */
[class*="border-green"],
[class*="border-red"],
[class*="border-blue"],
[class*="border-yellow"],
[class*="border-purple"],
[class*="border-cyan"],
[class*="border-orange"],
[class*="border-pink"],
[class*="border-indigo"],
[class*="border-teal"],
[class*="border-emerald"],
[class*="border-lime"],
[class*="border-amber"],
[class*="border-rose"],
[class*="border-violet"],
[class*="border-fuchsia"],
[class*="border-sky"],
[class*="border-slate"],
[class*="border-zinc"],
[class*="border-neutral"],
[class*="border-stone"],
[class*="border-gray"] {
  border-color: rgba(128, 128, 128, 0.3) !important;
}

/* Override shadows */
[class*="shadow"],
.shadow {
  box-shadow: 0 4px 6px -1px rgba(128, 128, 128, 0.1),
    0 2px 4px -1px rgba(128, 128, 128, 0.06) !important;
}

/* Override gradients */
[class*="bg-gradient"],
.bg-gradient {
  background: linear-gradient(
    135deg,
    rgba(128, 128, 128, 0.1) 0%,
    rgba(128, 128, 128, 0.05) 100%
  ) !important;
}

/* Override ring/outline effects */
[class*="ring"],
.ring {
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.2) !important;
}

/* Override focus states */
[class*="focus:"]:focus,
.focus:focus {
  border-color: rgba(128, 128, 128, 0.6) !important;
  outline-color: rgba(128, 128, 128, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.2) !important;
}

/* Override hover states */
[class*="hover:"]:hover,
.hover:hover {
  background-color: rgba(128, 128, 128, 0.3) !important;
  border-color: rgba(128, 128, 128, 0.6) !important;
  color: #ffffff !important;
}

/* Override active states */
[class*="active:"]:active,
.active:active {
  background-color: rgba(128, 128, 128, 0.4) !important;
}

/* Override disabled states */
[class*="disabled:"]:disabled,
.disabled:disabled {
  background-color: rgba(128, 128, 128, 0.1) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 0.5 !important;
}

/* Override any remaining colored elements */
[style*="background-color"],
[style*="background:"] {
  background-color: rgba(128, 128, 128, 0.1) !important;
}

[style*="color:"] {
  color: #ffffff !important;
}

[style*="border-color"],
[style*="border:"] {
  border-color: rgba(128, 128, 128, 0.3) !important;
}

/* Ensure all SVG and icon colors are white */
svg,
path,
rect,
circle,
polygon {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* Override any inline styles */
*[style] {
  background-color: rgba(128, 128, 128, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(128, 128, 128, 0.3) !important;
}

/* Force important overrides for any remaining elements */
* {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Specific overrides for common elements */
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
button,
input,
textarea,
select,
label,
li,
td,
th {
  color: #ffffff !important;
}

/* Ensure proper contrast for accessibility */
::selection {
  background-color: rgba(128, 128, 128, 0.3) !important;
  color: #ffffff !important;
}

::-moz-selection {
  background-color: rgba(128, 128, 128, 0.3) !important;
  color: #ffffff !important;
}
