/* Green 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: #22c55e !important;
}

.bg-brand-600 {
  background-color: #16a34a !important;
}

.bg-brand-400 {
  background-color: #4ade80 !important;
}

.bg-brand-900 {
  background-color: #14532d !important;
}

/* Text color - include both formats for Tailwind compatibility */
.text-brand-500 {
  color: #22c55e !important;
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1)) !important;
}

.text-brand-400 {
  color: #4ade80 !important;
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1)) !important;
}

.text-brand-600 {
  color: #16a34a !important;
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1)) !important;
}

.text-brand-500\/50 {
  color: rgba(34, 197, 94, 0.5) !important;
}

.border-brand-500 {
  border-color: #22c55e !important;
}

.border-brand-400 {
  border-color: #4ade80 !important;
}

.border-brand-600 {
  border-color: #16a34a !important;
}

.border-brand-500\/20 {
  border-color: rgba(34, 197, 94, 0.2) !important;
}

.border-brand-500\/30 {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.ring-brand-500 {
  --tw-ring-color: #22c55e !important;
}

.ring-brand-400 {
  --tw-ring-color: #4ade80 !important;
}

/* Brand-500 with opacity */
.bg-brand-500\/10 {
  background-color: rgba(34, 197, 94, 0.1) !important;
}

.bg-brand-500\/15 {
  background-color: rgba(34, 197, 94, 0.15) !important;
}

.bg-brand-500\/20 {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

.bg-brand-500\/30 {
  background-color: rgba(34, 197, 94, 0.3) !important;
}

.bg-brand-500\/40 {
  background-color: rgba(34, 197, 94, 0.4) !important;
}

/* Gradient overrides - from/via/to brand colors */
.from-brand-500 {
  --tw-gradient-from: #22c55e !important;
}

.via-brand-500 {
  --tw-gradient-via: #22c55e !important;
}

.to-brand-500 {
  --tw-gradient-to: #22c55e !important;
}

.from-brand-500\/5 {
  --tw-gradient-from: rgba(34, 197, 94, 0.05) !important;
}

.from-brand-500\/10 {
  --tw-gradient-from: rgba(34, 197, 94, 0.1) !important;
}

.from-brand-500\/20 {
  --tw-gradient-from: rgba(34, 197, 94, 0.2) !important;
}

/* Custom color theme support using CSS variables */
.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;
}

/* ── Brand color override (CSS variable) ─────────────────────── */
:root {
  --brand-400: #4ade80;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-900: #14532d;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar-thumb {
  background: #22c55e;
}

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

/* ── Glass Panel ─────────────────────────────────────────────── */
.glass-panel,
.product-card,
.swal2-popup,
.server-card {
  border-color: rgba(34, 197, 94, 0.2);
}

.glass-panel:hover {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.15) 0%,
    rgba(24, 24, 27, 0.8) 100%
  );
}

/* ── Nav Items ─────────────────────────────────────────────── */
.nav-item.active i {
  color: #22c55e !important;
}

.nav-item.active .icon-container::before {
  background: #22c55e;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button-primary:hover,
.btn-primary:hover {
  background-color: #16a34a !important;
}

.search-focus:focus-within {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
  border-color: #22c55e;
}

/* ── Active Tab Styles ─────────────────────────────────────── */
.tab-btn.active,
.bg-brand-600 {
  background-color: #22c55e !important;
}

/* ── Progress Bars ─────────────────────────────────────────── */
.bg-gradient-to-r.from-amber-500.to-brand-500 {
  background: linear-gradient(to right, #f59e0b, #22c55e);
}

/* Toggle Switch ─────────────────────────────────────────── */
.toggle-switch.active {
  background-color: #22c55e !important;
  border-color: #16a34a !important;
}

.toggle-switch .indicator {
  background-color: #22c55e !important;
}

/* ── Body Glow Effects ─────────────────────────────────────── */
body::before {
  box-shadow:
    90vw 20vh 75px 25px rgba(34, 197, 94, 0.5),
    30vw 10vh 60px 20px rgba(34, 197, 94, 0.4);
}

/* ── Shimmer Animation ─────────────────────────────────────── */
.nav-item.active::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.15),
    transparent
  );
}
