/* Smart Camp Platform - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #020617;
  color: #f1f5f9;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(217, 70, 239, 0.3); }
  50% { box-shadow: 0 0 20px rgba(217, 70, 239, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-slide-in { animation: slideIn 0.3s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Glass morphism */
.glass {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(217, 70, 239, 0.3);
  box-shadow: 0 4px 20px rgba(217, 70, 239, 0.1);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #d946ef, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient border */
.gradient-border {
  position: relative;
  background: #0f172a;
  border-radius: 12px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, #d946ef, #8b5cf6, #06b6d4);
  z-index: -1;
}

/* Message bubbles */
.msg-mine {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(217, 70, 239, 0.2);
  border-radius: 16px 16px 4px 16px;
}

.msg-other {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 16px 16px 16px 4px;
}

/* Priority badges */
.priority-critical { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.priority-high { background: rgba(249, 115, 22, 0.2); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.3); }
.priority-medium { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.3); }
.priority-low { background: rgba(34, 197, 94, 0.2); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }

/* Status badges */
.status-todo { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.status-in_progress { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.status-done { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.status-blocked { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

/* Mood colors */
.mood-energized { color: #34d399; }
.mood-focused { color: #60a5fa; }
.mood-neutral { color: #94a3b8; }
.mood-stressed { color: #f87171; }
.mood-tired { color: #a78bfa; }

/* Input styles */
input, textarea, select {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(51, 65, 85, 0.5) !important;
  color: #f1f5f9 !important;
  border-radius: 8px !important;
  transition: border-color 0.3s ease !important;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: rgba(217, 70, 239, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1) !important;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.5);
  color: #cbd5e1;
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.5);
  border-color: rgba(100, 116, 139, 0.5);
}

/* Sidebar nav */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nav-item:hover {
  background: rgba(51, 65, 85, 0.3);
  color: #e2e8f0;
}

.nav-item.active {
  background: rgba(217, 70, 239, 0.1);
  color: #d946ef;
  border-left: 3px solid #d946ef;
}

/* Chat area */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(51, 65, 85, 0.5) !important;
  border: none !important;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(217, 70, 239, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar-desktop { display: none; }
  .mobile-nav { display: flex !important; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
}

/* Tab styles */
.tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #94a3b8;
  background: transparent;
  border: none;
}

.tab-btn:hover { color: #e2e8f0; background: rgba(51, 65, 85, 0.3); }
.tab-btn.active { color: #d946ef; background: rgba(217, 70, 239, 0.1); }

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(217, 70, 239, 0.2);
  border-top-color: #d946ef;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.toast-success { background: rgba(34, 197, 94, 0.9); color: white; }
.toast-error { background: rgba(239, 68, 68, 0.9); color: white; }
