@import "tailwindcss";

:root {
  --background: #eef2f7;
  --foreground: #12233f;
  --surface: #ffffff;
  --surface-soft: #f2f6fc;
  --surface-alt: #f9fbfe;
  --text-strong: #102949;
  --text-muted: #5f7492;
  --brand: #2c6fdb;
  --brand-strong: #1e58b5;
  --brand-soft: #e9f0ff;
  --border: #cfd9e6;
}

[data-theme="rose"] {
  --brand: #e11d8a;
  --brand-strong: #be185d;
  --brand-soft: #fce7f3;
}

[data-theme="dark"] {
  --background: #0b1220;
  --foreground: #e5eefc;
  --surface: #0f1a2b;
  --surface-soft: #1a2740;
  --surface-alt: #121f34;
  --text-strong: #e8f0ff;
  --text-muted: #9eb2d4;
  --border: #334766;
  --brand: #3b82f6;
  --brand-strong: #2563eb;
  --brand-soft: #1e2c48;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), sans-serif;
}

.atlas-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
}

.atlas-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.atlas-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 22px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 10px;
}

.atlas-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.atlas-theme-toggle {
  position: relative;
  width: 60px;
  height: 21px;
  border-radius: 999px;
  border: 1px solid var(--brand-strong);
  background: var(--brand);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(8, 23, 46, 0.2);
  overflow: hidden;
}

.atlas-theme-hitbox {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33.3334%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.atlas-theme-hitbox-day {
  left: 0;
}

.atlas-theme-hitbox-rose {
  left: 33.3334%;
}

.atlas-theme-hitbox-dark {
  left: 66.6668%;
}

.atlas-theme-knob {
  position: absolute;
  top: 0;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe5f5;
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(5, 17, 38, 0.24);
  transition: transform 180ms ease-out, color 180ms ease-out;
}

.atlas-theme-toggle[data-mode="rose"] .atlas-theme-knob {
  transform: translateX(21px);
}

.atlas-theme-toggle[data-mode="dark"] .atlas-theme-knob {
  transform: translateX(41px);
}

.atlas-theme-unicorn {
  font-size: 10px;
  line-height: 1;
}

.atlas-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 28px;
  color: var(--brand);
  line-height: 1;
}

.atlas-brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.atlas-topnav {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.atlas-topnav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}

.atlas-topnav-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.atlas-title {
  font-size: 46px;
  font-weight: 800;
}

.atlas-subtitle {
  font-size: 31px;
  font-weight: 700;
}

.atlas-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.atlas-filter-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr repeat(5, 1fr) auto auto;
}

.atlas-ghost-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-strong);
  padding: 7px 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.atlas-pill {
  border-radius: 10px;
  border: 1px solid #d7dfeb;
  background: var(--surface-soft);
  color: var(--text-strong);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
}

.atlas-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.atlas-hero {
  background: var(--brand);
  color: white;
  border-radius: 14px;
  padding: 46px 26px;
  text-align: center;
}

.atlas-grid {
  display: grid;
  gap: 16px;
}

.atlas-btn {
  border-radius: 10px;
  border: 1px solid var(--brand);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.atlas-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.atlas-btn-primary {
  background: var(--brand);
  color: white;
}

.atlas-btn-secondary {
  background: var(--surface-soft);
  color: var(--text-strong);
  border-color: var(--border);
}

.atlas-input,
.atlas-select,
.atlas-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  background: var(--surface-alt);
  color: var(--foreground);
}

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

.atlas-table th,
.atlas-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
  text-align: left;
  font-size: 13px;
}

[data-theme="rose"] .bg-blue-50 { background-color: #fdf2f8 !important; }
[data-theme="rose"] .bg-blue-600 { background-color: #e11d8a !important; }
[data-theme="rose"] .bg-blue-700 { background-color: #be185d !important; }
[data-theme="rose"] .text-blue-500 { color: #ec4899 !important; }
[data-theme="rose"] .text-blue-600 { color: #db2777 !important; }
[data-theme="rose"] .text-blue-700 { color: #be185d !important; }
[data-theme="rose"] .text-blue-800 { color: #9d174d !important; }
[data-theme="rose"] .text-blue-900 { color: #831843 !important; }
[data-theme="rose"] .border-blue-100 { border-color: #fbcfe8 !important; }
[data-theme="rose"] .border-blue-200 { border-color: #f9a8d4 !important; }
[data-theme="rose"] .border-blue-300 { border-color: #f472b6 !important; }
[data-theme="rose"] .border-blue-600 { border-color: #e11d8a !important; }
[data-theme="rose"] .ring-blue-100 { --tw-ring-color: rgb(244 114 182 / 0.24) !important; }
[data-theme="rose"] .ring-blue-200 { --tw-ring-color: rgb(236 72 153 / 0.35) !important; }
[data-theme="rose"] .ring-blue-300 { --tw-ring-color: rgb(219 39 119 / 0.4) !important; }
[data-theme="rose"] .focus\:border-blue-400:focus { border-color: #f472b6 !important; }
[data-theme="rose"] .focus\:ring-blue-100:focus { --tw-ring-color: rgb(244 114 182 / 0.28) !important; }
[data-theme="rose"] [class*="from-blue-"] {
  --tw-gradient-from: #fdf2f8 var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(253 242 248 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
[data-theme="rose"] [class*="to-blue-"] {
  --tw-gradient-to: #fbcfe8 var(--tw-gradient-to-position) !important;
}

[data-theme="dark"] .bg-white { background-color: #0f1a2b !important; }
[data-theme="dark"] .bg-white\/95 { background-color: rgba(15, 26, 43, 0.95) !important; }
[data-theme="dark"] .bg-slate-50 { background-color: #121f34 !important; }
[data-theme="dark"] .bg-slate-100 { background-color: #1b2b44 !important; }
[data-theme="dark"] .bg-slate-200 { background-color: #2a3c5b !important; }
[data-theme="dark"] .bg-blue-50 { background-color: #16243b !important; }
[data-theme="dark"] .bg-blue-50\/40 { background-color: rgba(22, 36, 59, 0.4) !important; }
[data-theme="dark"] .bg-blue-600 { background-color: #3b82f6 !important; }
[data-theme="dark"] .bg-blue-700 { background-color: #2563eb !important; }
[data-theme="dark"] .text-slate-900 { color: #f1f5ff !important; }
[data-theme="dark"] .text-slate-800 { color: #e6eeff !important; }
[data-theme="dark"] .text-slate-700 { color: #d4e1fb !important; }
[data-theme="dark"] .text-slate-600 { color: #bfd0f0 !important; }
[data-theme="dark"] .text-slate-500 { color: #9eb2d4 !important; }
[data-theme="dark"] .text-slate-400 { color: #88a1ca !important; }
[data-theme="dark"] .text-blue-900 { color: #dce8ff !important; }
[data-theme="dark"] .text-blue-800 { color: #c8dafc !important; }
[data-theme="dark"] .text-blue-700 { color: #aecaef !important; }
[data-theme="dark"] .text-blue-600 { color: #99bee9 !important; }
[data-theme="dark"] .text-blue-500 { color: #87b0e5 !important; }
[data-theme="dark"] .border-slate-100 { border-color: #2b3f62 !important; }
[data-theme="dark"] .border-slate-200 { border-color: #334766 !important; }
[data-theme="dark"] .border-slate-300 { border-color: #415a7f !important; }
[data-theme="dark"] .border-blue-100 { border-color: #2d4368 !important; }
[data-theme="dark"] .border-blue-200 { border-color: #35507c !important; }
[data-theme="dark"] .border-blue-300 { border-color: #44649a !important; }
[data-theme="dark"] .border-blue-600 { border-color: #3b82f6 !important; }
[data-theme="dark"] .ring-blue-100 { --tw-ring-color: rgb(87 137 206 / 0.24) !important; }
[data-theme="dark"] .ring-blue-200 { --tw-ring-color: rgb(59 130 246 / 0.36) !important; }
[data-theme="dark"] .ring-blue-300 { --tw-ring-color: rgb(37 99 235 / 0.42) !important; }
[data-theme="dark"] .placeholder\:text-slate-500::placeholder { color: #9eb2d4 !important; }
[data-theme="dark"] .hover\:bg-slate-100:hover { background-color: #243652 !important; }
[data-theme="dark"] .atlas-help-nav {
  background-color: #0f1a2b !important;
  border-color: #2f4970 !important;
}
[data-theme="dark"] .atlas-help-section {
  background-color: #0f1a2b !important;
  border-color: #2f4970 !important;
}
[data-theme="dark"] .atlas-help-illustration {
  background: linear-gradient(135deg, #152741 0%, #0f1c30 100%) !important;
  border-color: #2f4970 !important;
}
[data-theme="dark"] .atlas-help-illustration-card {
  background-color: #101b2d !important;
  border-color: #35507c !important;
}
[data-theme="dark"] .atlas-help-illustration-step {
  background-color: #16243b !important;
  border-color: #3d5d8f !important;
  color: #d6e4ff !important;
}
[data-theme="dark"] .atlas-help-faq-item {
  background-color: #16243b !important;
  border-color: #35507c !important;
}

@media (max-width: 980px) {
  .atlas-header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .atlas-topnav {
    justify-content: flex-start;
    overflow: auto;
    white-space: nowrap;
  }

  .atlas-filter-grid {
    grid-template-columns: 1fr;
  }

  .atlas-title {
    font-size: 34px;
  }

  .atlas-subtitle {
    font-size: 26px;
  }

  .atlas-input,
  .atlas-select,
  .atlas-textarea {
    font-size: 18px;
  }

  .atlas-table th,
  .atlas-table td {
    font-size: 14px;
  }
}
