:root {
  /* Premium Dark Palette */
  --bg-deep: #050505;
  --bg-card: rgba(20, 20, 25, 0.6);
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --secondary: #6366f1;
  --accent: #a78bfa;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --neon-border: rgba(139, 92, 246, 0.2);
  
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --dark-gradient: linear-gradient(180deg, #0a0a0c 0%, #050505 100%);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background Aura Elements */
.glow-blob {
  position: fixed;
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  filter: blur(100px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.blob-1 { top: -100px; right: -100px; background: rgba(139, 92, 246, 0.2); }
.blob-2 { bottom: -100px; left: -100px; background: rgba(99, 102, 241, 0.2); }

.app-container {
  display: flex;
  background: transparent;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: rgba(10, 10, 12, 0.4);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  z-index: 100;
}

.nav-item {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
  border-right: 2px solid var(--primary);
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.header {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.2);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.content-area {
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Premium Card Design */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  border-color: var(--neon-border);
}

.card h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Input Styles */
input, textarea, select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Button Refinement */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* Badge Styles */
.badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-approved { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

/* Custom Switch Styling */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--glass-border); transition: .4s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Custom Header Components */
.header-token-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item i {
  width: 20px;
  height: 20px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin-left: 0 !important;
    padding-bottom: 70px; /* Space for bottom nav */
  }
  
  .bottom-nav {
    display: flex;
  }
  
  .header {
    padding: 0 16px;
    height: 64px;
  }
  
  .content-area {
    padding: 20px 16px;
  }
  
  .header-token-box {
    padding: 6px 12px;
  }
  
  .header-token-box input {
    width: 100px;
  }

  .badge-approved {
    font-size: 9px;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
