/* Purple Theme CSS - Alternative color scheme */

/* ── Override Tailwind brand color utilities ───────────────────── */
.bg-brand-500 {
  background-color: #a855f7 !important;
}
.bg-brand-600 {
  background-color: #9333ea !important;
}
.bg-brand-400 {
  background-color: #c084fc !important;
}
.bg-brand-900 {
  background-color: #581c87 !important;
}

.text-brand-500 {
  color: #a855f7 !important;
}
.text-brand-400 {
  color: #c084fc !important;
}
.text-brand-600 {
  color: #9333ea !important;
}

.border-brand-500 {
  border-color: #a855f7 !important;
}
.border-brand-400 {
  border-color: #c084fc !important;
}
.border-brand-600 {
  border-color: #9333ea !important;
}

.ring-brand-500 {
  --tw-ring-color: #a855f7 !important;
}
.ring-brand-400 {
  --tw-ring-color: #c084fc !important;
}

/* Brand-500 with opacity */
.bg-brand-500\/10 {
  background-color: rgba(168, 85, 247, 0.1) !important;
}
.bg-brand-500\/15 {
  background-color: rgba(168, 85, 247, 0.15) !important;
}
.bg-brand-500\/20 {
  background-color: rgba(168, 85, 247, 0.2) !important;
}
.bg-brand-500\/30 {
  background-color: rgba(168, 85, 247, 0.3) !important;
}
.bg-brand-500\/40 {
  background-color: rgba(168, 85, 247, 0.4) !important;
}

/* Gradient overrides - from/via/to brand colors */
.from-brand-500 {
  --tw-gradient-from: #a855f7 !important;
}
.via-brand-500 {
  --tw-gradient-via: #a855f7 !important;
}
.to-brand-500 {
  --tw-gradient-to: #a855f7 !important;
}

.from-brand-500\/5 {
  --tw-gradient-from: rgba(168, 85, 247, 0.05) !important;
}
.from-brand-500\/10 {
  --tw-gradient-from: rgba(168, 85, 247, 0.1) !important;
}
.from-brand-500\/20 {
  --tw-gradient-from: rgba(168, 85, 247, 0.2) !important;
}

/* Additional gradient overrides */
.from-brand-400 {
  --tw-gradient-from: #c084fc !important;
}

.to-brand-600 {
  --tw-gradient-to: #9333ea !important;
}

.from-brand-400\/5 {
  --tw-gradient-from: rgba(192, 132, 252, 0.05) !important;
}

.to-brand-400 {
  --tw-gradient-to: #c084fc !important;
}

.via-brand-400 {
  --tw-gradient-via: #c084fc !important;
}

/* Border with opacity */
.border-brand-500\/50 {
  border-color: rgba(168, 85, 247, 0.5) !important;
}

/* Shadow overrides */
.shadow-brand-500\/25 {
  --tw-shadow-color: rgba(168, 85, 247, 0.25) !important;
  --tw-shadow: var(--tw-shadow-colored);
}

.shadow-brand-500\/50 {
  --tw-shadow-color: rgba(168, 85, 247, 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(168 85 247 / var(--tw-text-opacity, 1)) !important;
}

.group:hover .group-hover\\:text-brand-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / var(--tw-text-opacity, 1)) !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;
}

.text-brand-500\/50 {
  color: rgba(168, 85, 247, 0.5) !important;
}

.border-brand-500\/20 {
  border-color: rgba(168, 85, 247, 0.2) !important;
}
.border-brand-500\/30 {
  border-color: rgba(168, 85, 247, 0.3) !important;
}

/* ── Brand color override (CSS variable) ─────────────────────── */
:root {
  --brand-400: #c084fc;
  --brand-500: #a855f7;
  --brand-600: #9333ea;
  --brand-900: #581c87;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar-thumb {
  background: #a855f7;
}

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* ── Glass Panel ─────────────────────────────────────────────── */
.glass-panel,
.product-card,
.swal2-popup,
.server-card {
  border-color: rgba(168, 85, 247, 0.2);
}

.glass-panel:hover {
  background: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.15) 0%,
    rgba(24, 24, 27, 0.8) 100%
  );
}

/* ── Nav Items ─────────────────────────────────────────────── */
.nav-item.active i {
  color: #a855f7 !important;
}

.nav-item.active .icon-container::before {
  background: #a855f7;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button-primary:hover,
.btn-primary:hover {
  background-color: #9333ea !important;
}

.search-focus:focus-within {
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5);
  border-color: #a855f7;
}

/* ── Active Tab Styles ─────────────────────────────────────── */
.tab-btn.active,
.bg-brand-600 {
  background-color: #a855f7 !important;
}

/* ── Progress Bars ─────────────────────────────────────────── */
.bg-gradient-to-r.from-amber-500.to-brand-500 {
  background: linear-gradient(to right, #f59e0b, #a855f7);
}

/* Toggle Switch ─────────────────────────────────────────── */
.toggle-switch.active {
  background-color: #a855f7 !important;
  border-color: #9333ea !important;
}

.toggle-switch .indicator {
  background-color: #a855f7 !important;
}

/* ── Body Glow Effects ─────────────────────────────────────── */
body::before {
  box-shadow:
    90vw 20vh 75px 25px rgba(168, 85, 247, 0.5),
    30vw 10vh 60px 20px rgba(168, 85, 247, 0.4);
}

/* ── Shimmer Animation ─────────────────────────────────────── */
.nav-item.active::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.15),
    transparent
  );
}
