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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #f0f3f8;
  --bg-card: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --sidebar-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.7);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-bg: #f3f4f6;
  --active-gradient: linear-gradient(135deg, #eff6ff 0%, #e0eaff 100%);
}

body.dark {
  --bg-primary: #0f0f12;
  --bg-secondary: #1a1a1f;
  --bg-card: #1e1e24;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --border-color: #2d2d35;
  --sidebar-bg: #1a1a1f;
  --header-bg: rgba(26, 26, 31, 0.7);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --hover-bg: #2d2d35;
  --active-gradient: linear-gradient(135deg, #1e3a5f 0%, #1e2a3a 100%);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 10px;
  opacity: 0.5;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

.nav-item,
.card-hover,
button,
.setting-item,
.theme-transition {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
  background: var(--active-gradient);
  color: #3b82f6;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -12px var(--shadow-color);
}

.glass {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle .light-icon,
.theme-toggle .dark-icon {
  position: absolute;
  transition: all 0.3s ease;
}

body:not(.dark) .theme-toggle .dark-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

body.dark .theme-toggle .light-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

body.dark input,
body.dark select,
body.dark textarea {
  background-color: #2d2d35;
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark input::placeholder {
  color: var(--text-secondary);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: shimmer 1.5s infinite;
}

.dropzone-active {
  border-color: #3b82f6 !important;
  background: var(--active-gradient);
}
