/* ===========================================================
   🎨 NOFAKEBIZ EDITOR STYLESHEET
   Glavni UI, Toolbar, Content Blocks, Legend
   Author: Amir Basic
   Location: /platform/site/pages/editor/help/editor.css
   Date: 10/22/2025
   =========================================================== */

/* =========================================================
   🧭 EDITOR HELP — TYPOGRAPHY PREVIEW SYSTEM
   ---------------------------------------------------------
   Svrha:
   Ovaj CSS služi za sekciju "Help / Tool Explanation"
   unutar NFB editora. Svaka alatka (Bold, Headings, Emoji,
   itd.) ima vizuelni primjer prikazan u okviru
   <div class="tool-example">.

   Da bi tipografija u primjerima izgledala isto kao
   u stvarnom editoru, svi headingi, paragrafi i naslovi
   moraju se nalaziti unutar .editor-content wrappera.

   Primjer:
     <div class="tool-example">
       <div class="editor-content">
         <h1>Heading Example</h1>
         <p>Paragraph text...</p>
       </div>
     </div>

   Zašto je to važno:
   - .editor-content primjenjuje sve brend stilove
     iz editor.css (Poppins font, scale, spacing, boje)
   - Omogućava istovjetan izgled između editora i help panela
   - Sprječava vizuelna odstupanja ako se headingi nalaze
     izvan svog CSS scope-a
   - Zadržava čitljivost i tipografsku hijerarhiju (H1–H6)

   Napomena:
   Ako u pojedinim slučajevima želimo izolovani preview
   (bez .editor-content), potrebno je ručno redefinisati
   h1–h6 stilove unutar .tool-example selektora.
   ========================================================= */

   /* =========================================================
   🧱 NFB EDITOR CORE TYPOGRAPHY SYSTEM
   =========================================================
   Svrha:
   ---------------------------------------------------------
   Ovaj fajl definiše sve tipografske i vizuelne stilove
   unutar NFB editora (tijelo teksta, naslovi, citati, liste,
   kod blokovi, itd.). Sav sadržaj koji korisnik kreira ili
   uređuje nalazi se unutar .editor-content wrappera.

   Struktura:
   ---------------------------------------------------------
   <div class="editor-wrapper">
     <div class="editor-toolbar">...</div>
     <div class="editor-content">
       <h1>Title</h1>
       <p>Paragraph...</p>
     </div>
   </div>

   Scope:
   ---------------------------------------------------------
   Svi stilovi se primjenjuju isključivo unutar
   .editor-content. To omogućava:
   - potpunu izolaciju od globalnog CSS-a platforme
   - konzistentan prikaz između editora i preview moda
   - lakše održavanje i tematsku fleksibilnost

   Font i vizuelni identitet:
   ---------------------------------------------------------
   Koristi se Poppins (Variant 3 — Brand Style)
   za sve headinge, podnaslove i tekstove.
   Time se obezbjeđuje jasan, moderan i čitljiv izgled
   u skladu sa NFB brend sistemom.

   Hijerarhija tipografije:
   ---------------------------------------------------------
   • H1–H6 → naslovi po važnosti (svaki manji od prethodnog)
   • .title / .subtitle → specijalni naslovi članka
   • p → osnovni paragraf (1.05rem, line-height: 1.75)
   • blockquote, ul/ol, code → posebni blok elementi
   • sve unutar .editor-content, nikad izvan nje

   Dodatno:
   ---------------------------------------------------------
   .editor-content se može koristiti i u drugim kontekstima
   (npr. u "Help" sekciji editora), čime se dobija realan
   prikaz stilova bez potrebe za duplikacijom CSS-a.

   Pravilo održavanja:
   ---------------------------------------------------------
   • Uvijek dodavati nove stilove unutar .editor-content scope-a
   • Nikad ne redefinisati globalne h1–h6, p, ul, ol, itd.
   • Komentarisati veće sekcije (Headings, Paragraphs, Blockquotes)
     i držati ih u logičnom redoslijedu za lakše ažuriranje.

   ========================================================= */

/* =========================================================
   📘 OBJAŠNJENJE DIZAJNA: HEADINGS (H1–H6)
   ---------------------------------------------------------
   H1 → Glavni naslov (naslov članka, page title)
        font-size: 2.4rem | color: #111827 | bold (700)
        Koristi se za uvod u članak ili glavni naslov u editoru.

   H2 → Sekundarni naslov (veće sekcije)
        font-size: 1.9rem | color: #1e293b | semibold (600)
        Označava veće sadržajne cjeline unutar članka.

   H3 → Naslov trećeg nivoa (unutrašnje podsekcije)
        font-size: 1.5rem | color: #374151 | semibold (600)
        Koristi se za manje naslove unutar H2 sekcije.

   H4 → Manji naslov (mini-sekcije, detalji)
        font-size: 1.25rem | color: #4b5563 | semibold (600)
        Koristi se za isticanje manjih podnaslova.

   H5 → Tehnički heading (neprimjetan)
        font-size: 1.1rem | color: #6b7280 | medium (500)
        Može se koristiti za sekundarne naslove, opise blokova.

   H6 → Meta heading (tagovi, oznake, datumi)
        font-size: 1rem | color: #9ca3af | medium (500)
        text-transform: uppercase | letter-spacing: 0.05em
        Najmanji heading, često za meta informacije.
   ---------------------------------------------------------
   Svi heading elementi koriste:
   - font-family: Poppins (var(--font-content))
   - line-height: 1.25
   - margin-top/bottom različite po hijerarhiji
   ---------------------------------------------------------
   Efekat: Stvara jasan ritam čitanja i tipografsku hijerarhiju
   kroz cijeli sadržaj članka. Sve izgleda dosljedno, čisto
   i prepoznatljivo u NFB stilu (Variant 3 – All Poppins).
   ========================================================= */

/* =========================================================
   🧱 HEADINGS (H1–H6)
   ---------------------------------------------------------
   Svi naslovi unutar editora (i article previewa)
   koriste Poppins (Variant 3 – Brand Style).
   ---------------------------------------------------------
   Pravilo:
   - veći heading → veći kontrast i razmak
   - svi headingi imaju vizualni ritam
   ========================================================= */

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  font-family: var(--font-content); /* Poppins */
  color: var(--color-heading);
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

/* 🟦 H1 — Glavni naslov (naslov članka / sekcije) */
.editor-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.2px;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6; /* suptilna linija za balans */
  padding-bottom: 0.4rem;
}

/* 🟩 H2 — Sekundarni naslov (podnaslov sekcije) */
.editor-content h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #1e293b; /* tamnija nijansa za hijerarhiju */
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

/* 🟧 H3 — Naslov trećeg nivoa (unutrašnje podsekcije) */
.editor-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

/* 🟨 H4 — Manji naslov, često za “mini-sekcije” */
.editor-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

/* 🟪 H5 — Tehnički heading (manje istaknut) */
.editor-content h5 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

/* 🟫 H6 — Najmanji heading, često za “meta” oznake */
.editor-content h6 {
  font-size: 1rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

/* 🎯 Fina harmonija — heading posle paragrafa */
.editor-content p + h2,
.editor-content p + h3,
.editor-content p + h4 {
  margin-top: 2.2rem;
}

/* =========================================================
   🧭 GLOBAL TITLE SYSTEM — PAGE vs CHAPTER
   ---------------------------------------------------------
   STRUKTURA I NAMJENA:
   - .page-title       → koristi se na statičnim ili glavnim
                         stranicama (Home, About, Membership)
   - .chapter-title    → koristi se unutar članaka i blog tekstova
                         kao glavni naslov poglavlja
   - .page-subtitle,
     .chapter-subtitle → opcioni opisni tekst ispod naslova

   FONT SISTEM:
   - Page titles   → Serif (Georgia, "Times New Roman")
                     daje ozbiljan, klasičan i hero izgled.
   - Chapter titles → Poppins (sans-serif)
                     koristi brend font iz Variant 3
                     da se poveže sa editor-content stilom.

   SHORT/LONG TITLE:
   - .short-title → automatski primijenjen JS-om ako je naslov ≤ 40 znakova
                    → prikazuje se UPPERCASE i smanjenog razmaka
   - .long-title  → automatski primijenjen za duže naslove
                    → normalni tekst sa manjim letter-spacing

   DODATNI ELEMENTI:
   - Dekorativna linija ispod naslova (::after) koristi linearni
     gradijent NFB brend boje (#f56a4e) radi vizualnog balansa.
   - Subtitles imaju ograničenu širinu (max 720px) radi boljeg
     čitanja i automatski se centriraju.

   CILJ:
   - Zadržati eleganciju i prepoznatljivost na glavnim stranicama
     (serif), dok blog i editor dio ostaju dosljedni Poppins brendu.
   ========================================================= */

   /* ============================================
   📚 GLOBAL STYLE FOR TITLES (page + chapter)
   ============================================ */


   .emoji-btn,
.editor-content {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

/* Glavni naslov za stranice (hero / static) */
.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: #006699;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
  text-transform: none;
  letter-spacing: -0.3px;
}

/* Glavni naslov unutar bloga / članka */
.chapter-title {
  font-family: 'Poppins', sans-serif; /* brend sans-serif */
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Podnaslov (page ili chapter) */
.page-subtitle,
.chapter-subtitle {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: #444;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Kratki naslov (<= 40 znakova) */
.short-title {
  text-transform: uppercase;
  font-size: 2rem;
}

/* Dugi naslov (> 40 znakova) */
.long-title {
  text-transform: none;
  letter-spacing: -0.03rem;
  font-size: 2.125rem;
  line-height: 1.25;
}

/* Dekorativna linija ispod naslova */
.page-title::after,
.chapter-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 1rem auto 1.5rem;
  background: linear-gradient(to right, transparent, #f56a4e, transparent);
  opacity: 0.6;
}

/* =========================================================
   📝 PARAGRAPHS
   ---------------------------------------------------------
   Osnovni tekst (paragraphs) čine tijelo svakog članka.
   Koriste Poppins font (Variant 3) i globalnu boju teksta.

   STRUKTURA:
   - font-family: var(--font-content) (Poppins)
   - font-size: 1.05rem (optimalna čitljivost)
   - line-height: 1.75 (prostran, lako za oči)
   - color: var(--color-text) (#1f2937)
   - max-width: 760px (ograničenje širine u čitanju)
   - margin-bottom: 1rem (vertikalni ritam)
   - margin-top: 0 (kontrola razmaka između blokova)
   ---------------------------------------------------------
   DODATNE NAPOMENE:
   - Paragraphi se automatski prilagođavaju uređajima.
   - Spacing između p + p je manji, između p + heading veći.
   - Stilizacija linkova (a) i strong/em tagova urađena
     u zasebnim sekcijama.
   ---------------------------------------------------------
   CILJ:
   Obezbijediti da osnovni tekst ima ritam, prostor i ton
   pogodan za duže čitanje — profesionalan, ali topao.
   ========================================================= */

.editor-content p {
  font-family: var(--font-content); /* Poppins */
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: 760px;
}

/* Paragraph spacing harmony */
.editor-content p + p {
  margin-top: 0.5rem;
}

/* Paragraph followed by heading gets more space */
.editor-content p + h2,
.editor-content p + h3,
.editor-content p + h4 {
  margin-top: 2.2rem;
}


/* 🌐 Osnovne varijable (možeš ih staviti i u root.css) */
:root {
  --nfb-accent: #1e88e5;       /* NFB plava */
  --nfb-accent-light: #64b5f6;
  --nfb-text: #222;
  --nfb-muted: #666;
}

/* ✅ Reset i sigurnost */
.editor-content,
.editor-content * {
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* ✅ Blokiraj globalne flex/grid efekte */
.editor-content ul,
.editor-content ol,
.editor-content li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}



/* =========================================================
   📝 LISTS – UL & OL (Multi-level, Unified Look)
   --------------------------------------------------------- */

/* 🌐 Osnovne varijable (možeš ih staviti i u root.css) */
:root {
  --nfb-accent: #1e88e5;
  --nfb-text: #222;
  --nfb-muted: #666;
}

/* ✅ Reset i sigurnost */
.editor-content,
.editor-content * {
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* ✅ Blokiraj globalne flex/grid efekte */
.editor-content ul,
.editor-content ol,
.editor-content li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===== 🎯 MODERNE NFB LISTE ===== */
.editor-content ul,
.editor-content ol {
  margin: 0 0 1rem 1.75rem;
  color: var(--nfb-text);
  line-height: 1.6;
  font-size: 1rem;
}

/* Svaka stavka ima blagi razmak */
.editor-content li {
  position: relative;
  margin: 0.4rem 0;
  padding-left: 0.5rem;
}

/* === 🌈 MODERNI UL MARKERI PO NIVOIMA === */

/* 1️⃣ Prvi nivo – narandžasti */
.editor-content ul > li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.65em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #e56a1e;
  box-shadow: 0 0 0 3px rgba(229, 106, 30, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}
.editor-content ul > li:hover::before {
  transform: scale(1.15);
  background: #ff8c42;
}

/* 2️⃣ Drugi nivo – zelena */
.editor-content ul ul > li::before {
  background: transparent;
  border: 2px solid #4ac100;
  box-shadow: 0 0 0 3px rgba(74, 193, 0, 0.1);
  border-radius: 50%;
}
.editor-content ul ul > li:hover::before {
  border-color: #66d933;
  transform: scale(1.15);
}

/* 3️⃣ Treći nivo – ljubičasta */
.editor-content ul ul ul > li::before {
  border-radius: 2px;
  border: none;
  background: #8e24aa;
  box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.12);
}
.editor-content ul ul ul > li:hover::before {
  background: #ab47bc;
  transform: scale(1.15);
}

/* === 🔢 MODERNI OL MARKERI PO NIVOIMA === */
.editor-content ol {
  counter-reset: nfb-ol;
}

/* 1️⃣ nivo OL – narančasti broj */
.editor-content ol > li {
  counter-increment: nfb-ol;
}
.editor-content ol > li::before {
  content: counter(nfb-ol) ".";
  position: absolute;
  left: -1.7rem;
  top: 0;
  font-weight: 600;
  color: #e56a1e;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}
.editor-content ol > li:hover::before {
  color: #ff8c42;
  transform: scale(1.05);
}

/* 2️⃣ nivo OL – zelena brojka */
.editor-content ol ol {
  counter-reset: nfb-ol-2;
}
.editor-content ol ol > li {
  counter-increment: nfb-ol-2;
}
.editor-content ol ol > li::before {
  content: counter(nfb-ol-2, lower-alpha) ".";
  color: #4ac100;
  left: -1.7rem;
}
.editor-content ol ol > li:hover::before {
  color: #66d933;
}

/* 3️⃣ nivo OL – ljubičasta brojka */
.editor-content ol ol ol {
  counter-reset: nfb-ol-3;
}
.editor-content ol ol ol > li {
  counter-increment: nfb-ol-3;
}
.editor-content ol ol ol > li::before {
  content: counter(nfb-ol-3, lower-roman) ".";
  color: #8e24aa;
  left: -1.7rem;
}
.editor-content ol ol ol > li:hover::before {
  color: #ab47bc;
}

/* === 🔗 INDENT VODIČI (za sve kombinacije) === */
.editor-content ul ul,
.editor-content ol ol {
  position: relative;
}
.editor-content ul ul::before,
.editor-content ol ol::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0;
  left: -1.2rem;
  width: 1px;
  background: rgba(30, 136, 229, 0.15);
}

/* Nyanse vodiča po dubini */
.editor-content ul ul::before,
.editor-content ol ol::before {
  background: linear-gradient(to bottom, rgba(74, 193, 0, 0.15), transparent);
}
.editor-content ul ul ul::before,
.editor-content ol ol ol::before {
  background: linear-gradient(to bottom, rgba(142, 36, 170, 0.18), transparent);
}

/* --- Ugniježđene liste --- */
.editor-content li > ul,
.editor-content li > ol {
  margin-top: 0.3rem;
  margin-left: 1.5rem;
}

/* --- Responsivnost --- */
@media (min-width: 768px) {
  .editor-content ul,
  .editor-content ol {
    margin-left: 2rem;
  }
}


/* =========================================================
   📘 DEFINITION LIST — FINAL CLEAN NFB VERSION (NO MARKERS)
   --------------------------------------------------------- */

:root {
  --dl1: #e56a1e;  /* narandžasta - nivo 1 */
  --dl2: #4ac100;  /* zelena - nivo 2 */
  --dl3: #8e24aa;  /* ljubičasta - nivo 3 */
  --dl-text: #222;
  --dl-muted: #555;
  --dl-bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --dl1: #ff944d;
    --dl2: #7cff5a;
    --dl3: #d083ff;
    --dl-text: #eaeaea;
    --dl-muted: #bdbdbd;
    --dl-bg: #161616;
  }
}

/* === Base container === */
.editor-content dl {
  margin: 1.5rem 0;
  padding-left: 0;
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--dl-text);
}

/* === Definition term === */
.editor-content dt {
  font-weight: 700;
  color: var(--dl1);
  font-size: 1.08rem;
  margin-top: 1.3rem;
  margin-bottom: 0.4rem;
  display: inline-block;
  background: linear-gradient(to right, rgba(229,106,30,0.12), transparent 80%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.editor-content dt:hover {
  background: linear-gradient(to right, rgba(229,106,30,0.22), transparent 80%);
}

/* === Definition description === */
.editor-content dd {
  margin: 0.4rem 0 1.2rem 1.25rem;
  color: var(--dl-muted);
  line-height: 1.7;
  font-size: 1rem;
}
.editor-content dd:hover {
  color: var(--dl-text);
}

/* === NIVO 2 (ugnježđeni DL unutar DD) === */
.editor-content dd dl dt {
  color: var(--dl2);
  background: linear-gradient(to right, rgba(74,193,0,0.12), transparent 80%);
}
.editor-content dd dl dt:hover {
  background: linear-gradient(to right, rgba(74,193,0,0.22), transparent 80%);
}
.editor-content dd dl dd {
  margin-left: 1.25rem;
}

/* === NIVO 3 (ugnježđeni DL unutar drugog DD) === */
.editor-content dd dl dl dt {
  color: var(--dl3);
  background: linear-gradient(to right, rgba(142,36,170,0.12), transparent 80%);
}
.editor-content dd dl dl dt:hover {
  background: linear-gradient(to right, rgba(142,36,170,0.22), transparent 80%);
}
.editor-content dd dl dl dd {
  margin-left: 1.25rem;
}

/* === Responsive === */
@media (max-width: 700px) {
  .editor-content dt {
    font-size: 1rem;
  }
  .editor-content dd {
    margin-left: 1rem;
    font-size: 0.95rem;
  }
}

/* =========================================================
   ✅ NFB CHECKLIST
   --------------------------------------------------------- */

:root {
  --check-done: #4ac100;
  --check-progress: #1e88e5;
  --check-pending: #bbb;
  --check-text: #222;
  --check-muted: #555;
}

@media (prefers-color-scheme: dark) {
  :root {
    --check-done: #7cff5a;
    --check-progress: #64b5f6;
    --check-pending: #777;
    --check-text: #eaeaea;
    --check-muted: #bdbdbd;
  }
}

/* === Base list === */
.editor-content ul.checklist,
.editor-content ol.checklist {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--check-text);
}

.editor-content ul.checklist li,
.editor-content ol.checklist li {
  position: relative;
  padding-left: 2rem;
  margin: 0.6rem 0;
  line-height: 1.6;
  transition: color 0.2s ease;
}

/* === Default (unchecked) === */
.editor-content ul.checklist li::before,
.editor-content ol.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 6px;
  border: 2px solid var(--check-pending);
  background: transparent;
  box-sizing: border-box;
}

/* === DONE === */
.editor-content .checklist li.done::before {
  background: var(--check-done);
  border-color: var(--check-done);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M4.0 7.2L1.2 4.4L0 5.6L4.0 9.6L12 1.6L10.8 0.4L4.0 7.2Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

/* === IN PROGRESS === */
.editor-content .checklist li.progress::before {
  background: var(--check-progress);
  border-color: var(--check-progress);
  animation: nfb-pulse 1.5s infinite ease-in-out;
}

/* === Pulse animation === */
@keyframes nfb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,136,229,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(30,136,229,0); }
}

/* === Text colors === */
.editor-content .checklist li.done {
  color: var(--check-muted);
  text-decoration: line-through;
}
.editor-content .checklist li.progress {
  color: var(--check-text);
  font-weight: 600;
}
.editor-content .checklist li:hover {
  color: var(--check-text);
}

/* === Nested checklists === */
.editor-content .checklist ul,
.editor-content .checklist ol {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}

/* =========================================================
   🧭 NFB STEP LIST (PROCESS / TIMELINE)
   --------------------------------------------------------- */

:root {
  --step1: #1e88e5;  /* plava */
  --step2: #4ac100;  /* zelena */
  --step3: #8e24aa;  /* ljubičasta */
  --step4: #e56a1e;  /* narandžasta (fallback za 4+) */
  --step-text: #222;
  --step-muted: #555;
}

@media (prefers-color-scheme: dark) {
  :root {
    --step1: #64b5f6;
    --step2: #7cff5a;
    --step3: #d083ff;
    --step4: #ff944d;
    --step-text: #eaeaea;
    --step-muted: #bdbdbd;
  }
}

/* === Base container === */
.editor-content ol.steps {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--step-text);
  counter-reset: step-counter; /* ✅ aktivira automatske brojeve */
}

/* === Step item === */
.editor-content ol.steps li {
  position: relative;
  padding-left: 3rem;
  margin: 2rem 0;
  counter-increment: step-counter; /* ✅ povećava broj */
}

/* === Step line (vertical) === */
.editor-content ol.steps li::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2.3rem;
  width: 2px;
  height: calc(100% - 2.3rem);
  background: rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  .editor-content ol.steps li::after {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* === Step number (circle) === */
.editor-content ol.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--step1);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}

/* === Step colors by order === */
.editor-content ol.steps li:nth-child(1)::before { background: var(--step1); box-shadow: 0 0 0 4px rgba(30,136,229,0.12); }
.editor-content ol.steps li:nth-child(2)::before { background: var(--step2); box-shadow: 0 0 0 4px rgba(74,193,0,0.12); }
.editor-content ol.steps li:nth-child(3)::before { background: var(--step3); box-shadow: 0 0 0 4px rgba(142,36,170,0.12); }
.editor-content ol.steps li:nth-child(n+4)::before { background: var(--step4); box-shadow: 0 0 0 4px rgba(229,106,30,0.12); }

/* === Hover effect === */
.editor-content ol.steps li:hover::before {
  transform: scale(1.12);
  filter: brightness(1.15);
}

/* === Step text === */
.editor-content ol.steps li h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--step-text);
}

.editor-content ol.steps li p {
  margin: 0.35rem 0 0 0;
  font-size: 0.95rem;
  color: var(--step-muted);
  line-height: 1.6;
}

/* === Remove line for last item === */
.editor-content ol.steps li:last-child::after {
  display: none;
}

/* === Responsive === */
@media (max-width: 700px) {
  .editor-content ol.steps li {
    padding-left: 2.4rem;
  }
  .editor-content ol.steps li::before {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.9rem;
  }
  .editor-content ol.steps li::after {
    left: 0.8rem;
  }
}

/* =========================================================
   🌟 NFB ICON LIST — FLAT CLEAN VERSION
   --------------------------------------------------------- */

/* === NFB ICON LIST (clean fixed version) === */
.editor-content ul.icon-list,
.editor-content ul.icon-list ul,
.editor-content ul.icon-list li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* === Base layout === */
.editor-content ul.icon-list {
  margin: 1.5rem 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--icon-text);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === FIX: uklanja UL pseudo-markere za icon list === */
.editor-content ul.icon-list > li::before,
.editor-content ul.icon-list li::before {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* === Each item === */
.editor-content ul.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  line-height: 1.6;
  position: relative;
}


/* === Icon (flat clean) === */
.editor-content ul.icon-list li .icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon1);
  border: 2px solid rgba(30,136,229,0.25);
  border-radius: 50%;
  background: none;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.editor-content ul.icon-list li:hover .icon {
  transform: scale(1.1);
  color: var(--icon2);
  border-color: rgba(74,193,0,0.35);
}

/* === Text === */
.editor-content ul.icon-list li span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--icon-text);
  display: block;
}
.editor-content ul.icon-list li p {
  margin: 0.15rem 0 0 0;
  font-size: 0.9rem;
  color: var(--icon-muted);
  line-height: 1.55;
}

/* === Dynamic icon colors by position === */
.editor-content ul.icon-list li:nth-child(1) .icon { color: var(--icon1); border-color: rgba(30,136,229,0.3); }
.editor-content ul.icon-list li:nth-child(2) .icon { color: var(--icon2); border-color: rgba(74,193,0,0.3); }
.editor-content ul.icon-list li:nth-child(3) .icon { color: var(--icon3); border-color: rgba(142,36,170,0.3); }
.editor-content ul.icon-list li:nth-child(n+4) .icon { color: var(--icon4); border-color: rgba(229,106,30,0.3); }



/* === Responsive === */
@media (max-width: 700px) {
  .editor-content ul.icon-list li .icon {
    font-size: 1.1rem;
    width: 1.6rem;
    height: 1.6rem;
  }
  .editor-content ul.icon-list li span {
    font-size: 0.95rem;
  }
}

/* =========================================================
   💬 NFB FAQ LIST — Clean Accordion (Fixed)
   --------------------------------------------------------- */

:root {
  --faq-accent: #1e88e5;
  --faq-bg: #f9fafc;
  --faq-border: #e0e0e0;
  --faq-text: #222;
  --faq-muted: #555;
}

@media (prefers-color-scheme: dark) {
  :root {
    --faq-accent: #64b5f6;
    --faq-bg: #1a1a1a;
    --faq-border: #333;
    --faq-text: #eaeaea;
    --faq-muted: #aaa;
  }
}

/* === Base container === */
.editor-content dl.faq-list {
  margin: 2rem 0;
  padding: 0;
  border-radius: 10px;
  background: var(--faq-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* === Each item === */
.editor-content .faq-list .faq-item {
  border-top: 1px solid var(--faq-border);
}

.editor-content .faq-list .faq-item:first-child {
  border-top: none;
}

/* === Question (DT) === */
.editor-content .faq-list dt {
  position: relative;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--faq-text);
  transition: background 0.25s ease, color 0.25s ease;
}

.editor-content .faq-list dt:hover {
  background: rgba(30,136,229,0.05);
  color: var(--faq-accent);
}

/* Indicator */
.editor-content .faq-list dt::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--faq-accent);
  transition: transform 0.3s ease;
}

/* === Answer (DD) === */
.editor-content .faq-list dd {
  margin: 0;
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  background: rgba(30,136,229,0.02);
  color: var(--faq-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: max-height 0.4s ease, padding 0.25s ease;
}

/* === Active (Opened) === */
.editor-content .faq-list .faq-item.active dd {
  max-height: 300px;
  padding: 1rem 1.25rem;
}
.editor-content .faq-list .faq-item.active dt::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

/* === Fix: marker spacing and alignment === */
.editor-content .faq-list dt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.editor-content .faq-list dt::after {
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 1.4rem;
  line-height: 1;
}

/* === Responsive === */
@media (max-width: 700px) {
  .editor-content .faq-list dt {
    font-size: 1rem;
  }
  .editor-content .faq-list dd {
    font-size: 0.9rem;
  }
}

















/* 🧱 INLINE TEXT STYLES — used in editor previews and Help */
strong {
  font-weight: 600;
  color: #111;
}

em {
  font-style: italic;
  color: #111;
}

u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #1e88e5;
}

s {
  text-decoration: line-through;
  text-decoration-color: #e53935;
  text-decoration-thickness: 1px;
}

sup {
  vertical-align: super;
  font-size: 0.75em;
  color: #1e88e5;
}

sub {
  vertical-align: sub;
  font-size: 0.75em;
  color: #43a047;
}

/* Superscript & Subscript uniform button sizing */
.tool-icon sup {
  position: relative;
  top: -0.4em; /* podigni broj */
  font-size: 0.7em;
}

.tool-icon sub {
  position: relative;
  bottom: -0.55em; /* spusti broj */
  font-size: 0.7em;
}

/* 🧹 Clear formatting button accent */
.toolbar-btn button.tool-icon:has(> span),
.toolbar-btn button.tool-icon:contains("clr") {
  color: #6b7280; /* neutral gray */
  border-color: #9ca3af;
}

/* 🎯 Alignment examples */
.align-left { text-align: left; border: 1px dashed #e5e7eb}
.align-center { text-align: center; border: 1px dashed #e5e7eb}
.align-right { text-align: right; border: 1px dashed #e5e7eb}
.align-justify { text-align: justify; border: 1px dashed #e5e7eb}

/* 🎨 Text Color Examples */
.text-red { color: #e53935; }
.text-green { color: #43a047; }
.text-blue { color: #1e88e5; }
.text-purple { color: #8e24aa; }

/* 🎁 Example styling */
.tool-example.colored {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #43a047;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.tool-example.colored p {
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #e0e0e0;
}


/* 🟨 Highlight styles */
.highlight-yellow {
  background-color: #fff59d;
  padding: 0 2px;
}

.highlight-blue {
  background-color: #bbdefb;
  padding: 0 2px;
}

.highlight-green {
  background-color: #c8e6c9;
  padding: 0 2px;
}

.highlight-red {
  background-color: #ffcdd2;
  padding: 0 2px;
}

/* =========================================
   📘 HIGHLIGHT INLINE NODE
   ========================================= */

/* 🌈 Inline highlight stilovi za NFB Editor */
.highlight-inline {
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.25s ease, color 0.25s ease;
}

/* 🔸 Žuti — standard marker */
.highlight-yellow {
  background: #fff59d;
  color: #333;
}

/* 🔹 Plavi — info */
.highlight-blue {
  background: #bbdefb;
  color: #0d47a1;
}

/* 🟢 Zeleni — success */
.highlight-green {
  background: #c8e6c9;
  color: #1b5e20;
}

/* 🔴 Crveni — alert */
.highlight-red {
  background: #ffcdd2;
  color: #b71c1c;
}

/* 🟣 Ljubičasti — creative */
.highlight-purple {
  background: #e1bee7;
  color: #4a148c;
}

/* ✨ Hover efekat (opcionalno) */
.highlight-inline:hover {
  filter: brightness(1.05);
}

/* 🎯 Demo kontejner za pregled */
.highlight-preview {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 700px;
  margin: 2rem auto;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.highlight-preview p {
  margin: 0.6rem 0;
}

/* 🏷️ Tag-style inline highlight */
.highlight-tag {
  display: inline-block;
  border-radius: 6px;
  padding: 1px 6px 2px;
  font-weight: 500;
  font-size: 0.95em;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

/* 🔸 Žuti */
.highlight-tag.highlight-yellow {
  color: #8a6d00;
  background: #fffde7;
  border-color: #fff59d;
}

/* 🔹 Plavi */
.highlight-tag.highlight-blue {
  color: #0d47a1;
  background: #e3f2fd;
  border-color: #90caf9;
}

/* 🟢 Zeleni */
.highlight-tag.highlight-green {
  color: #1b5e20;
  background: #e8f5e9;
  border-color: #a5d6a7;
}

/* 🔴 Crveni */
.highlight-tag.highlight-red {
  color: #b71c1c;
  background: #ffebee;
  border-color: #ef9a9a;
}

/* 🟣 Ljubičasti */
.highlight-tag.highlight-purple {
  color: #4a148c;
  background: #f3e5f5;
  border-color: #ce93d8;
}

/* ✨ Hover efekat */
.highlight-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 🎯 Demo kontejner (isti kao prije) */
.highlight-preview.tag-style {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 700px;
  margin: 2rem auto;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* 🎨 Sekcija za kombinovani pregled */
.highlight-combo {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.8rem;
  max-width: 750px;
  margin: 2.5rem auto;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.highlight-combo h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

/* 🔄 Red sa dvije varijante */
.highlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.highlight-row:hover {
  background: #fdfdfd;
  transform: scale(1.01);
}

/* 🎯 Ujednačavanje širina */
.highlight-row span {
  min-width: 45%;
  text-align: center;
  font-size: 0.95rem;
}
