/* Phu Kham Saen - Glassmorphism Theme (Dark & White Neon Apple Style) */

:root {
  --neon-cyan: #06b6d4;
  --neon-cyan-glow: rgba(6, 182, 212, 0.45);
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.4);
  --neon-emerald: #10b981;
  --neon-emerald-glow: rgba(16 gravitate, 185, 129, 0.4);
  --neon-rose: #f43f5e;
  
  /* White Neon Glass Mode Defaults */
  --bg-gradient: radial-gradient(circle at 15% 15%, #e0e7ff 0%, #f1f5f9 45%, #e2e8f0 100%);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-glow: rgba(99, 102, 241, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.55);
  --input-bg: rgba(255, 255, 255, 0.7);
  --nav-bg: rgba(255, 255, 255, 0.75);
}

/* Dark Neon Glass Mode */
[data-theme="dark"] {
  --bg-gradient: radial-gradient(circle at 10% 20%, #0d1527 0%, #080b14 60%, #030712 100%);
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-bg-hover: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-glow: rgba(6, 182, 212, 0.4);
  --glass-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.6);
  --input-bg: rgba(15, 23, 42, 0.75);
  --nav-bg: rgba(10, 15, 29, 0.8);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Ambient glow spheres behind glass */
.ambient-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

[data-theme="dark"] .ambient-sphere-1 {
  width: 500px;
  height: 500px;
  background: #3b82f6;
  top: -100px;
  left: -100px;
}

[data-theme="dark"] .ambient-sphere-2 {
  width: 450px;
  height: 450px;
  background: #8b5cf6;
  bottom: 50px;
  right: -80px;
}

[data-theme="dark"] .ambient-sphere-3 {
  width: 380px;
  height: 380px;
  background: #06b6d4;
  top: 40%;
  left: 45%;
}

[data-theme="light"] .ambient-sphere-1 {
  width: 450px;
  height: 450px;
  background: #c7d2fe;
  top: -50px;
  left: -50px;
}

[data-theme="light"] .ambient-sphere-2 {
  width: 400px;
  height: 400px;
  background: #bae6fd;
  bottom: 0px;
  right: -50px;
}

[data-theme="light"] .ambient-sphere-3 {
  width: 350px;
  height: 350px;
  background: #ddd6fe;
  top: 45%;
  left: 40%;
}

/* Glass Card / Panel */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: var(--glass-border-glow);
  box-shadow: var(--glass-shadow), 0 0 20px -3px var(--glass-border-glow);
}

.glass-navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Glass Input */
.glass-input {
  background: var(--input-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.glass-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px var(--neon-cyan-glow);
}

/* Neon Glow Buttons */
.btn-neon-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.39);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-neon-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
}

.btn-neon-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-neon-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.55);
}

.btn-neon-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
}

.btn-neon-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

/* Badges */
.badge-glass-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-glass-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-glass-rejected {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}
