/* ============================================================
   Luxea Wallet — Custom Stylesheet
   Luxea Coin (LUX) | Solana Blockchain
   ============================================================ */

/* ─── Root Variables ──────────────────────────────────────── */
:root {
  --lux-bg:      #060612;
  --lux-card:    #0e0e1a;
  --lux-border:  #1e1e35;
  --lux-purple:  #7c3aed;
  --lux-violet:  #8b5cf6;
  --lux-cyan:    #22d3ee;
  --lux-text:    #e2e8f0;
  --lux-muted:   #64748b;
}

/* ─── Base ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Scrollbar Styling ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--lux-card);
}
::-webkit-scrollbar-thumb {
  background: var(--lux-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lux-violet);
}

/* ─── Selection ───────────────────────────────────────────── */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fade-in       { animation: fadeIn 0.4s ease forwards; }
.animate-slide-in-left { animation: slideInLeft 0.4s ease forwards; }
.animate-glow          { animation: glow 2s ease-in-out infinite; }
.animate-float         { animation: float 3s ease-in-out infinite; }
.animate-shimmer       { animation: shimmer 2s linear infinite; background-size: 200% 100%; }

/* ─── Gradient Text ───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--lux-violet), var(--lux-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass Card ──────────────────────────────────────────── */
.glass-card {
  background: rgba(14, 14, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

/* ─── Gradient Border Card ────────────────────────────────── */
.gradient-border {
  position: relative;
  background: var(--lux-card);
  border-radius: 16px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--lux-purple), transparent 40%, var(--lux-cyan));
  z-index: -1;
}

/* ─── Shimmer Loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--lux-border) 25%, #2a2a45 50%, var(--lux-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

/* ─── Neon Glow Buttons ───────────────────────────────────── */
.btn-lux-primary {
  background: linear-gradient(135deg, var(--lux-purple), #6d28d9);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 0 0 rgba(124, 58, 237, 0);
}
.btn-lux-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}
.btn-lux-primary:active {
  transform: translateY(0);
}

/* ─── Input Styles ────────────────────────────────────────── */
.lux-input {
  background: var(--lux-bg);
  border: 1px solid var(--lux-border);
  border-radius: 12px;
  color: var(--lux-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lux-input:focus {
  outline: none;
  border-color: var(--lux-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ─── Number Input — hide arrows ──────────────────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ─── Wallet Address Mono ─────────────────────────────────── */
.wallet-address {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}

/* ─── Status Indicators ───────────────────────────────────── */
.status-confirmed { color: #4ade80; }
.status-pending   { color: #fbbf24; }
.status-failed    { color: #f87171; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dot.confirmed { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.status-dot.pending   { background: #fbbf24; animation: pulse 1.5s infinite; }
.status-dot.failed    { background: #f87171; }

/* ─── Safe Area Padding (mobile) ──────────────────────────── */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* ─── Toast Notifications ─────────────────────────────────── */
.lux-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  min-width: 280px;
  max-width: 380px;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInLeft 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.lux-toast.success {
  background: rgba(22, 101, 52, 0.9);
  border: 1px solid rgba(74, 222, 128, 0.3);
  backdrop-filter: blur(12px);
}
.lux-toast.error {
  background: rgba(127, 29, 29, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.3);
  backdrop-filter: blur(12px);
}
.lux-toast.info {
  background: rgba(30, 58, 138, 0.9);
  border: 1px solid rgba(147, 197, 253, 0.3);
  backdrop-filter: blur(12px);
}

/* ─── QR Code Wrapper ─────────────────────────────────────── */
#qrCodeContainer canvas,
#qrCodeContainer img {
  border-radius: 8px;
}

/* ─── Chart Containers ────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 200px;
}

/* ─── Responsive Table ────────────────────────────────────── */
@media (max-width: 640px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── Nav Active State ────────────────────────────────────── */
.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--lux-violet);
  background: rgba(139, 92, 246, 0.15);
}

/* ─── Print Styles ────────────────────────────────────────── */
@media print {
  aside, header, nav, footer, .no-print { display: none !important; }
  main { margin-left: 0 !important; }
  body { background: white; color: black; }
}

/* ─── Focus Visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--lux-violet);
  outline-offset: 2px;
}
