/* ======================
   Design tokens
====================== */

:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card-bg: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --accent-strong: #16a34a;
  --text-main: #f9fafb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.75);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ======================
   Layout shell
====================== */

.page {
  min-height: 100vh;
  padding: 32px 16px 40px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* zajedničke stvari za sve stranice */
.shell {
  width: 100%;
  max-width: 1120px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.98)
  );
  border-radius: 28px;
  padding: 28px 26px 30px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

/* homepage (index.html) – NEMA .sidebar → flex kolona */
.shell:not(:has(.sidebar)) {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* dokumentacione stranice – imaju .sidebar → dvokolonski grid */
.shell:has(.sidebar) {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  .shell:not(:has(.sidebar)) {
    padding: 32px 36px 34px;
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .shell:has(.sidebar) {
    padding: 32px 36px 34px;
    gap: 26px;
  }
}

/* ======================
   Brand / logo
====================== */

.brand,
.brand-small {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 15% 15%, #bbf7d0 0, transparent 40%),
    radial-gradient(circle at 80% 80%, #22c55e 0, transparent 55%),
    linear-gradient(135deg, #16a34a, #22c55e);
  border: 1px solid rgba(34, 197, 94, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #022c22;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-soft);
}

/* na indexu je veći logo */
.shell:not(:has(.sidebar)) .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 17px;
}

/* ======================
   Top bar (index)
====================== */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chip-pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  opacity: 0.9;
}

/* ======================
   Hero – shared bits
====================== */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-soft);
  margin-bottom: 8px;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-title {
  font-size: clamp(24px, 2.7vw, 28px);
  line-height: 1.2;
  margin: 0 0 6px;
}

.hero-title strong {
  color: var(--accent);
}

.hero-lead {
  font-size: 13px;
  color: var(--text-soft);
  max-width: 540px;
  line-height: 1.7;
}

.hero-lead b {
  color: #e5e7eb;
  font-weight: 500;
}

/* ======================
   Hero – index (home)
   (hero je grid, ima search panel)
====================== */

.shell:not(:has(.sidebar)) > .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

@media (max-width: 840px) {
  .shell:not(:has(.sidebar)) > .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* na home je naslov malo veći */
.shell:not(:has(.sidebar)) .hero-title {
  font-size: clamp(27px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.shell:not(:has(.sidebar)) .hero-lead {
  font-size: 14px;
  line-height: 1.65;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-footnote {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-soft);
}

/* search panel */

.hero-panel {
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.09) 0,
    #020617 48%,
    #020617 100%
  );
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
}

.search-block {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  padding: 6px 6px 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.search-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-soft);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
}

.search-input::placeholder {
  color: #6b7280;
}

.search-kbd {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: #e5e7eb;
  background: #020617;
}

.hero-panel-sub {
  margin-top: 11px;
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.hero-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #d1d5db;
}

.hero-panel-note {
  opacity: 0.8;
}

/* ======================
   Hero – docs stranice
   (getting-started, basic-info, clients, fleet, invoices, reservations)
====================== */

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content .hero {
  margin-bottom: 4px;
}

/* ======================
   Buttons
====================== */

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #022c22;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 35px rgba(22, 163, 74, 0.45);
  text-decoration: none;
}

.btn-primary span.icon {
  font-size: 15px;
}

.btn-secondary {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary span.icon {
  font-size: 14px;
}

/* ======================
   Index – grid sekcije, kartice
====================== */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-soft);
}

/* index grid ispod hero-a */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 840px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
  padding: 13px 13px 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out, background 0.18s ease-out;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.95);
  border-color: rgba(34, 197, 94, 0.8);
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.09) 0,
    #020617 55%,
    #000 100%
  );
}

.card-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 7px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.card-list li::before {
  content: "•";
  color: var(--accent);
  font-size: 12px;
}

.card-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}

.card-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.card-meta {
  opacity: 0.7;
}

/* ======================
   FAQ + support (index)
====================== */

.bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 840px) {
  .bottom-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 14px;
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.16) 0,
    #020617 40%,
    #020617 100%
  );
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.faq-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.faq-item {
  margin-bottom: 8px;
}

.faq-q {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
}

.faq-a {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.6;
}

.support-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 14px;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.08) 0,
    #020617 48%,
    #020617 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  gap: 10px;
}

.support-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.support-text {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 6px;
}

.support-meta {
  font-size: 11px;
  color: #9ca3af;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.support-link {
  font-size: 11px;
  text-decoration: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-link span.icon {
  font-size: 13px;
}

/* ======================
   Sidebar (docs pages)
====================== */

.sidebar {
  border-radius: 22px;
  padding: 16px 14px 16px;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.12) 0,
    #020617 48%,
    #020617 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 24px;
  align-self: flex-start;
  max-height: calc(100vh - 64px);
  overflow: auto;
}

@media (max-width: 880px) {
  .sidebar {
    position: static;
    max-height: none;
  }
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin: 10px 0 6px;
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
}

.toc li {
  margin-bottom: 4px;
}

.toc a {
  text-decoration: none;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.toc a span.step {
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.toc a:hover {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent);
}

.sidebar-note {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.6;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 8px;
  margin-top: 6px;
}

.sidebar-note strong {
  color: #e5e7eb;
}

/* ======================
   Sections (docs pages)
====================== */

.section {
  margin-top: 8px;
  padding: 12px 13px 13px;
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.section-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #9ca3af;
}

.section-body {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}

.section-body p {
  margin: 0 0 8px;
}

.section-body b {
  color: #e5e7eb;
  font-weight: 500;
}

/* linkovi u tekstu sekcija */
.section-body a {
  color: #f9fafb;
  text-decoration: underline;
}

.section-body a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ======================
   Steps, listovi, callout-i
====================== */

.steps {
  margin: 8px 0 6px;
  padding-left: 18px;
}

.steps li {
  margin-bottom: 6px;
}

.steps li strong {
  color: #e5e7eb;
  font-weight: 500;
}

.callout {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.9);
  font-size: 12px;
  color: var(--text-soft);
}

.callout-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.list-bullets {
  margin: 6px 0 4px;
  padding-left: 16px;
  font-size: 12px;
}

/* ======================
   Dvokolonski layout u sekcijama
====================== */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mini-label,
.mini-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin-bottom: 4px;
}

/* ======================
   Tagovi, tip-box, kbd
====================== */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: #d1d5db;
}

.tip-box {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
}

.kbd-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  font-size: 10px;
  background: #020617;
  margin: 0 2px;
}

/* ======================
   Footer (shared)
====================== */

.footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 11px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer a {
  color: #9ca3af;
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

.footer-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 11px;
}

.footer-back-link:hover {
  border-color: var(--accent);
  color: #f9fafb;
  background: rgba(22, 163, 74, 0.18);
  text-decoration: none;
}

/* ======================
   Ostalo
====================== */

/* sakrij <code> elemente (rute itd.) na svim stranicama */
code {
  display: none;
}