/* Base Styles */
:root {
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --accent: #e76f51;
  --bg-light: #fafaf5;
  --bg-dark: #1a1a2e;
  --card-bg: #ffffff;
  --card-border: #e0e0d8;
  --text: #2d3436;
  --text-muted: #636e72;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body,
body.dark-mode {
  background-color: var(--bg-dark) !important;
  color: #dfe6e9 !important;
}

.dark header {
  background-color: #16213e !important;
  border-color: #2d3436 !important;
}

.dark .dark-card,
.dark .bg-white {
  background-color: #16213e !important;
  border-color: #2d3436 !important;
}

.dark .bg-gray-50 {
  background-color: #0f3460 !important;
}

.dark .text-gray-600 {
  color: #b2bec3 !important;
}

.dark .text-gray-700 {
  color: #dfe6e9 !important;
}

.dark .text-gray-800 {
  color: #ffffff !important;
}

.dark .border-\[\#e0e0d8\] {
  border-color: #2d3436 !important;
}

.dark .bg-green-50,
.dark .bg-orange-50,
.dark .bg-blue-50,
.dark .bg-purple-50,
.dark .bg-yellow-50 {
  opacity: 0.7;
}

.dark input,
.dark select {
  background-color: #16213e;
  color: #dfe6e9;
  border-color: #2d3436;
}

.dark input:focus,
.dark select:focus {
  border-color: var(--primary);
}

.dark .bg-gray-900 {
  background-color: #0a1628 !important;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-in { animation: fadeInUp 0.6s ease-out; }
.animate-pulse-slow { animation: pulse 2s infinite; }

/* Tooltip */
.tooltip { position: relative; }
.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #333;
  color: white;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

.dark ::-webkit-scrollbar-track { background: #16213e; }
.dark ::-webkit-scrollbar-thumb { background: #4a6fa5; }
