@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Colors */
  --color-bg: #020617;
  --color-primary: #f59e0b; /* Amber 500 */
  --color-primary-glow: rgba(245, 158, 11, 0.5);
  --color-danger: #ef4444;
  --color-success: #10b981;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  
  /* Glass */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(148, 163, 184, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at top, rgba(30, 41, 59, 0.2), transparent 50%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.05), transparent 40%);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: float 20s infinite linear;
  z-index: -1;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Glass Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Inputs */
.input-glass {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: white;
  transition: all 0.2s;
}

.input-glass:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
  outline: none;
}

/* Range Slider */
.range-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 10px var(--color-primary-glow);
  cursor: pointer;
  margin-top: -8px;
  transition: transform 0.1s;
}

.range-thumb::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-track::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #ef4444, #f59e0b, #10b981);
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }
}

.animate-glow {
  animation: pulse-glow 3s infinite;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; /* Tiny gap */
  padding: 0.1rem 0.35rem; /* Tiny padding */
  border-radius: 9999px;
  font-size: 0.5rem; /* 8px - very small */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  line-height: 1;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
}
.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.05);
}

.status-badge.in-progress {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.05);
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.05);
}
.status-badge.pending .status-dot {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.status-badge.in-progress .status-dot {
  animation: spin 3s linear infinite; /* Just a placeholder for spin if it was an icon, but dots pulse */
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Text Gradients */
.text-gradient-gold {
  background: linear-gradient(to right, #f59e0b, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Utilities */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.safe-area-padding {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Chat Specific */
.chat-bubble {
  position: relative;
  z-index: 1;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: rgba(30, 41, 59, 0.95);
  min-width: 160px;
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 50;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.dropdown-content.show {
  display: block;
}
.dropdown-content button, .dropdown-content div {
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}
.dropdown-content button:hover {
  background-color: rgba(51, 65, 85, 0.8);
}
.dropdown-content button:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}
.dropdown-content button:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}
