/* Yellow Theme CSS - Alternative color scheme */

/* ── Override Tailwind brand color utilities ───────────────────── */
.bg-brand-500,
.bg-brand-500\/10,
.bg-brand-500\/15,
.bg-brand-500\/20,
.bg-brand-500\/30,
.bg-brand-500\/40,
.bg-brand-500\/50 {
  background-color: #eab308 !important;
}

.bg-brand-600 {
  background-color: #ca8a04 !important;
}
.bg-brand-400 {
  background-color: #facc15 !important;
}
.bg-brand-900 {
  background-color: #713f12 !important;
}

/* Text color */
.text-brand-500 {
  color: #eab308 !important;
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1)) !important;
}
.text-brand-400 {
  color: #facc15 !important;
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1)) !important;
}
.text-brand-600 {
  color: #ca8a04 !important;
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1)) !important;
}
.text-brand-500\/50 {
  color: rgba(234, 179, 8, 0.5) !important;
}

.border-brand-500 {
  border-color: #eab308 !important;
}
.border-brand-400 {
  border-color: #facc15 !important;
}
.border-brand-600 {
  border-color: #ca8a04 !important;
}
.border-brand-500\/20 {
  border-color: rgba(234, 179, 8, 0.2) !important;
}
.border-brand-500\/30 {
  border-color: rgba(234, 179, 8, 0.3) !important;
}
.border-brand-500\/50 {
  border-color: rgba(234, 179, 8, 0.5) !important;
}

.ring-brand-500 {
  --tw-ring-color: #eab308 !important;
}
.ring-brand-400 {
  --tw-ring-color: #facc15 !important;
}

/* Brand-500 with opacity */
.bg-brand-500\/10 {
  background-color: rgba(234, 179, 8, 0.1) !important;
}
.bg-brand-500\/15 {
  background-color: rgba(234, 179, 8, 0.15) !important;
}
.bg-brand-500\/20 {
  background-color: rgba(234, 179, 8, 0.2) !important;
}
.bg-brand-500\/30 {
  background-color: rgba(234, 179, 8, 0.3) !important;
}
.bg-brand-500\/40 {
  background-color: rgba(234, 179, 8, 0.4) !important;
}

/* Gradient overrides */
.from-brand-500 {
  --tw-gradient-from: #eab308 !important;
}
.via-brand-500 {
  --tw-gradient-via: #eab308 !important;
}
.to-brand-500 {
  --tw-gradient-to: #eab308 !important;
}
.from-brand-400 {
  --tw-gradient-from: #facc15 !important;
}
.to-brand-600 {
  --tw-gradient-to: #ca8a04 !important;
}
.from-brand-400\/5 {
  --tw-gradient-from: rgba(250, 204, 21, 0.05) !important;
}
.from-brand-500\/5 {
  --tw-gradient-from: rgba(234, 179, 8, 0.05) !important;
}
.from-brand-500\/10 {
  --tw-gradient-from: rgba(234, 179, 8, 0.1) !important;
}
.from-brand-500\/20 {
  --tw-gradient-from: rgba(234, 179, 8, 0.2) !important;
}
.to-brand-400 {
  --tw-gradient-to: #facc15 !important;
}
.via-brand-400 {
  --tw-gradient-via: #facc15 !important;
}

/* Shadow overrides */
.shadow-brand-500\/25 {
  --tw-shadow-color: rgba(234, 179, 8, 0.25) !important;
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-brand-500\/50 {
  --tw-shadow-color: rgba(234, 179, 8, 0.5) !important;
  --tw-shadow: var(--tw-shadow-colored);
}

/* Group hover states */
.group:hover .group-hover\:text-brand-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1)) !important;
}
.group:hover .group-hover\:text-brand-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1)) !important;
}

/* Custom color theme support */
.theme-custom .bg-brand-500,
.theme-custom.bg-brand-500 {
  background-color: var(--brand-500) !important;
}
.theme-custom .text-brand-500,
.theme-custom.text-brand-500 {
  color: var(--brand-500) !important;
}
.theme-custom .border-brand-500,
.theme-custom.border-brand-500 {
  border-color: var(--brand-500) !important;
}
.theme-custom .toggle-switch .indicator {
  background-color: var(--brand-500) !important;
}
.theme-custom .toggle-switch.active {
  background-color: var(--brand-500) !important;
}

/* ── CSS variables ─────────────────────── */
:root {
  --brand-400: #facc15;
  --brand-500: #eab308;
  --brand-600: #ca8a04;
  --brand-900: #713f12;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar-thumb {
  background: #eab308;
}
::-webkit-scrollbar-thumb:hover {
  background: #ca8a04;
}

/* ── Glass Panel ─────────────────────────────────────────────── */
.glass-panel,
.product-card,
.swal2-popup,
.server-card {
  border-color: rgba(234, 179, 8, 0.2);
}
.glass-panel:hover {
  background: linear-gradient(
    180deg,
    rgba(234, 179, 8, 0.15) 0%,
    rgba(24, 24, 27, 0.8) 100%
  );
}

/* ── Nav Items ─────────────────────────────────────────────── */
.nav-item.active i {
  color: #eab308 !important;
}
.nav-item.active .icon-container::before {
  background: #eab308;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button-primary:hover,
.btn-primary:hover {
  background-color: #ca8a04 !important;
}
.search-focus:focus-within {
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.5);
  border-color: #eab308;
}

/* ── Active Tab Styles ─────────────────────────────────────── */
.tab-btn.active,
.bg-brand-600 {
  background-color: #eab308 !important;
}

/* ── Progress Bars ─────────────────────────────────────────── */
.bg-gradient-to-r.from-amber-500.to-brand-500 {
  background: linear-gradient(to right, #f59e0b, #eab308);
}

/* Toggle Switch ─────────────────────────────────────────── */
.toggle-switch.active {
  background-color: #eab308 !important;
  border-color: #ca8a04 !important;
}
.toggle-switch .indicator {
  background-color: #eab308 !important;
}

/* ── Body Glow Effects ─────────────────────────────────────── */
body::before {
  box-shadow:
    90vw 20vh 75px 25px rgba(234, 179, 8, 0.5),
    30vw 10vh 60px 20px rgba(234, 179, 8, 0.4);
}

/* ── Shimmer Animation ─────────────────────────────────────── */
.nav-item.active::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(234, 179, 8, 0.15),
    transparent
  );
}
