@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { font-family: 'Inter', sans-serif; }

body {
  background: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(251, 191, 36, 0.08) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.06) 0, transparent 50%);
}

.dark body {
  background: #0f172a;
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.1) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(234, 88, 12, 0.08) 0, transparent 50%);
}

/* Animações */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.5s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Cards */
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}
.dark .card-hover:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Gradientes */
.gradient-amber { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); }
.gradient-dark { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.gradient-gold { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%); }

/* Sidebar */
.sidebar-link {
  transition: all 0.2s ease;
  position: relative;
}
.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #f59e0b, #ea580c);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}
.sidebar-link:hover::before,
.sidebar-link.active::before { transform: scaleY(1); }
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}
.dark .sidebar-link:hover, .dark .sidebar-link.active {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Inputs */
input, select, textarea { transition: all 0.2s ease; }
input:focus, select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Botões */
.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(#f59e0b, #ea580c); border-radius: 4px; }
.dark ::-webkit-scrollbar-track { background: #1e293b; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Toggle dark mode */
.theme-toggle {
  width: 44px; height: 24px;
  background: #e2e8f0;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.dark .theme-toggle { background: #475569; }
.theme-toggle::after {
  content: '☀️';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.3s;
}
.dark .theme-toggle::after {
  content: '🌙';
  transform: translateX(20px);
}

/* Mobile sidebar */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.dark .progress-bar { background: #334155; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-radius: 9999px;
  transition: width 0.6s ease;
}