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

/* ===========================
   CSS VARIABLES / DESIGN TOKENS
   =========================== */
:root {
  --bg-primary: #0a0f0a;
  --bg-secondary: #0d1a0d;
  --bg-card: #111a11;
  --bg-elevated: #162216;
  --bg-hover: #1a2a1a;
  --border: rgba(22, 163, 74, 0.12);
  --border-strong: rgba(22, 163, 74, 0.25);

  --green-primary: #16a34a;
  --green-dark: #15803d;
  --green-glow: rgba(22, 163, 74, 0.15);
  --green-glow-strong: rgba(22, 163, 74, 0.3);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.2);
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --orange: #f97316;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-green: 0 0 20px rgba(57, 255, 20, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.6);

  --transition: all 0.2s ease;
  --transition-slow: all 0.4s ease;
}

/* ===========================
   LIGHT MODE OVERRIDES
   =========================== */
body.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #fdfdfd;
  --bg-elevated: #f1f5f9;
  --bg-hover: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.15);

  --green-primary: #22c55e;
  --green-dark: #16a34a;
  --green-glow: rgba(34, 197, 94, 0.1);
  --green-glow-strong: rgba(34, 197, 94, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --red: #dc2626;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
}

input,
button,
select,
textarea {
  font-family: inherit;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.w-full {
  width: 100%;
}

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

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

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

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

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 13px;
}

.text-xs {
  font-size: 11px;
}

.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-green {
  background: var(--green-primary);
  color: #000;
}

.btn-green:hover {
  background: #4dff2a;
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ===========================
   FORMS
   =========================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--green-primary);
  background: rgba(57, 255, 20, 0.04);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

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

.form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2339ff14' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.form-select:focus {
  outline: none;
  border-color: var(--green-primary);
}

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
}

/* ===========================
   BADGES / STATUS
   =========================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-updated {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-modified {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-created {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green-primary);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.badge-deleted {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===========================
   TICKER TAPE
   =========================== */
.ticker-tape {
  background: #000;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 32px;
  animation: ticker 40s linear infinite;
}

.ticker-inner:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: default;
}

.ticker-item .price {
  color: #fff;
  margin: 0 4px;
}

.ticker-item .change-up {
  color: var(--green-primary);
}

.ticker-item .change-dn {
  color: var(--red);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hide-mobile {
    display: none !important;
  }
}