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

:root {
  --font-sans: 'Inter', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #050505;
  color: #ededed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Theme: Light (por usuário) */
html.theme-light body {
  background-color: #f5f7fb !important;
  color: #0f172a !important;
}

html.theme-light .glass {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08) !important;
}

html.theme-light [class*="bg-dark-900"] {
  background-color: #f8fafc !important;
}

html.theme-light [class*="bg-dark-800"] {
  background-color: #f1f5f9 !important;
}

html.theme-light [class*="border-white/5"],
html.theme-light [class*="border-white/10"] {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html.theme-light .text-white {
  color: #0f172a !important;
}

html.theme-light [class*="text-gray-200"] {
  color: #334155 !important;
}

html.theme-light [class*="text-gray-300"] {
  color: #475569 !important;
}

html.theme-light [class*="text-gray-400"] {
  color: #64748b !important;
}

html.theme-light [class*="text-gray-500"],
html.theme-light [class*="text-gray-600"] {
  color: #94a3b8 !important;
}

html.theme-light .input-premium {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2b2b30;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(19, 19, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-dropdown {
  background: rgba(19, 19, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.glow-card {
  position: relative;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.4), rgba(255, 255, 255, 0.05), 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;
}

/* Background Gradients & Blurs */
.bg-ambient {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.bg-ambient-2 {
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.1) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Custom Inputs */
.input-premium {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  color: #fff;
}

.input-premium:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  outline: none;
}

/* Buttons */
.btn-premium {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.btn-premium:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ededed;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Badge */
.badge-premium {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
}
@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Sidebar Active Link */
.sidebar-link {
  transition: all 0.2s ease;
  position: relative;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.sidebar-link.active {
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  font-weight: 500;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 3px;
  background: #8b5cf6;
  border-radius: 0 4px 4px 0;
}

/* Tables */
.table-premium th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #a1a1aa;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}
.table-premium td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #e4e4e7;
  transition: background 0.2s;
}
.table-premium tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.table-premium tbody tr:last-child td {
  border-bottom: none;
}
