﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #ff6b35;
  --secondary: #004e89;
  --accent: #1a1a2e;
  --surface: #16213e;
  --surface-strong: #101b38;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Sora', sans-serif;
  background-color: #0b1120;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.35), transparent 70%);
}

body::after {
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle at center, rgba(0, 78, 137, 0.35), transparent 70%);
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.bg-surface {
  background-color: var(--surface);
}

.bg-surface-strong {
  background-color: var(--surface-strong);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted);
}

.border-surface {
  border-color: rgba(148, 163, 184, 0.15);
}

.glass-card {
  background: rgba(22, 33, 62, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(12px);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -24px rgba(255, 107, 53, 0.6);
}

.gradient-text {
  background: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-effect {
  background: rgba(22, 33, 62, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.bg-primary\/20 {
  background-color: rgba(255, 107, 53, 0.2);
}

.border-primary {
  border-color: var(--primary);
}

.focus\:border-primary:focus {
  border-color: var(--primary);
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--muted);
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #f8fafc;
}

.nav-link.is-active {
  background: rgba(255, 107, 53, 0.15);
  color: #f97316;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.3);
}

.nav-link.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-dark {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
}

.input-dark::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%);
  color: #0b1120;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -20px rgba(255, 107, 53, 0.8);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 10px 18px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: rgba(255, 107, 53, 0.5);
  color: #f97316;
}

.table-dark {
  width: 100%;
  border-collapse: collapse;
}

.table-dark th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 12px 16px;
}

.table-dark td {
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.table-dark tr:hover {
  background: rgba(148, 163, 184, 0.06);
}

/* Scrollbar styling */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.55);
}

.scrollbar-surface::-webkit-scrollbar-track {
  background-color: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .hide-sm {
    display: none;
  }
}
