/* components.css — WiseIntegrate */

/* =====================
   FOCUS STYLES (a11y)
   ===================== */
:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =====================
   SELECTION
   ===================== */
::selection {
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
}

/* =====================
   SCROLLBAR
   ===================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #08080f;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.55);
}

/* =====================
   BADGE / TAG
   ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 0.5px solid rgba(139, 92, 246, 0.28);
  color: var(--purple-3);
}

/* =====================
   DIVIDER
   ===================== */
.divider {
  width: 100%;
  height: 0.5px;
  background: rgba(139, 92, 246, 0.12);
  border: none;
}

/* =====================
   TOAST NOTIFICATION
   ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(13, 13, 26, 0.95);
  border: 0.5px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--glow-sm);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  max-width: 340px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon { font-size: 18px; color: var(--purple-3); }
.toast-success { border-color: rgba(34, 197, 94, 0.35); }
.toast-success .toast-icon { color: #4ade80; }
.toast-error { border-color: rgba(239, 68, 68, 0.35); }
.toast-error .toast-icon { color: #f87171; }

/* =====================
   LOADING SPINNER
   ===================== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(167, 139, 250, 0.25);
  border-top-color: var(--purple-3);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =====================
   FORM ERROR STATE
   ===================== */
.form-group.error input {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.06);
}
.form-group .error-msg {
  font-size: 12px;
  color: #f87171;
  margin-top: 0.35rem;
  display: none;
}
.form-group.error .error-msg {
  display: block;
}

/* =====================
   SECTION GLOW ACCENTS
   ===================== */
.glow-accent {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow-accent-purple {
  background: radial-gradient(circle,
    rgba(124, 58, 237, 0.14) 0%,
    transparent 65%
  );
}

/* =====================
   GRADIENT TEXT UTILITY
   ===================== */
.text-gradient {
  background: linear-gradient(135deg, var(--purple-4), var(--purple-3), var(--purple-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================
   GLASS CARD
   ===================== */
.glass-card {
  background: rgba(139, 92, 246, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-lg);
}
