/* ── REPORT.CSS — shared stylesheet za report skill HTML info fajlove ── */
/* Source: dom-glina.hr analiza.html visual style */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

        :root {
            --navy:    #1D3557;
            --red:     #C1272D;
            --blue:    #4472C4;
            --surface: #EEF1F6;
            --text:    #1A1A1A;
            --muted:   #6B7A8D;
            --border:  #DDE3ED;
            --white:   #FFFFFF;
            --code-bg: #1e2a3a;
            --nav-h:   52px;
        }
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Source Sans 3', sans-serif;
            font-size: 17px;
            line-height: 1.75;
            color: var(--text);
            background: #F7F9FC;
        }

        /* ── TOP NAV ── */
        .doc-nav {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--navy);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 32px;
            height: var(--nav-h);
            box-shadow: 0 2px 12px rgba(0,0,0,0.2);
        }
        .doc-nav__brand {
            font-size: 13px;
            font-weight: 700;
            color: rgba(255,255,255,0.5);
            letter-spacing: 1px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .doc-nav__brand img { height: 28px; background: white; border-radius: 4px; padding: 2px 6px; }
        .doc-nav__links { display: flex; gap: 4px; }
        .doc-nav__link {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: all 0.2s;
        }
        .doc-nav__link:hover { background: rgba(255,255,255,0.1); color: white; }
        .doc-nav__link.active { background: var(--red); color: white; }
        .doc-nav__link .num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px; height: 20px;
            background: rgba(255,255,255,0.15);
            border-radius: 50%;
            font-size: 11px;
        }
        .doc-nav__link.active .num { background: rgba(255,255,255,0.25); }

        /* ── PAGE LAYOUT ── */
        .page-body {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: flex-start;
            gap: 0;
        }

        /* ── SIDEBAR ── */
        .sidebar {
            width: 232px;
            flex-shrink: 0;
            position: sticky;
            top: var(--nav-h);
            height: calc(100vh - var(--nav-h));
            overflow-y: auto;
            padding: 32px 0 48px;
            border-right: 1px solid var(--border);
            scrollbar-width: thin;
            scrollbar-color: var(--border) transparent;
        }
        .sidebar::-webkit-scrollbar { width: 4px; }
        .sidebar::-webkit-scrollbar-track { background: transparent; }
        .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

        .sidebar-toc__label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--muted);
            padding: 0 18px;
            margin-bottom: 10px;
        }
        .sidebar-toc a {
            display: block;
            padding: 5px 18px;
            font-size: 13px;
            color: var(--muted);
            text-decoration: none;
            border-left: 2px solid transparent;
            line-height: 1.45;
            transition: color 0.15s, border-color 0.15s, background 0.15s;
            border-radius: 0 6px 6px 0;
            margin-right: 8px;
        }
        .sidebar-toc a:hover { color: var(--navy); background: rgba(29,53,87,0.05); }
        .sidebar-toc a.active {
            color: var(--navy);
            font-weight: 600;
            border-left-color: var(--red);
            background: rgba(29,53,87,0.05);
        }
        .sidebar-toc a.sub {
            padding-left: 30px;
            font-size: 12px;
        }
        .sidebar-toc .divider {
            height: 1px;
            background: var(--border);
            margin: 10px 18px;
        }

        /* ── MAIN CONTENT ── */
        .main-content {
            flex: 1;
            min-width: 0;
            padding: 32px 0 80px 40px;
        }

        /* ── DOC HEADER ── */
        .doc-header {
            background: var(--navy);
            color: white;
            padding: 40px 36px;
            border-radius: 12px;
            margin-bottom: 32px;
            position: relative;
            overflow: hidden;
        }
        .doc-header::before {
            content: '01';
            position: absolute;
            right: 28px; top: 50%;
            transform: translateY(-50%);
            font-size: 100px;
            font-weight: 700;
            color: rgba(255,255,255,0.05);
            line-height: 1;
            pointer-events: none;
        }
        .doc-header__label {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--red);
            margin-bottom: 10px;
        }
        .doc-header h1 {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 10px;
        }
        .doc-header__meta { font-size: 14px; color: rgba(255,255,255,0.5); }

        /* ── SECTIONS ── */
        .section {
            background: var(--white);
            border-radius: 12px;
            padding: 32px 36px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
            scroll-margin-top: calc(var(--nav-h) + 16px);
        }

        h2 {
            font-size: 22px;
            font-weight: 700;
            color: var(--navy);
            margin: 32px 0 14px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--surface);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        h2:first-child { margin-top: 0; }
        h2 .h-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px; height: 30px;
            background: var(--navy);
            color: white;
            border-radius: 6px;
            font-size: 13px;
            flex-shrink: 0;
        }
        h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--navy);
            margin: 26px 0 10px;
            scroll-margin-top: calc(var(--nav-h) + 16px);
        }
        h4 {
            font-size: 14px;
            font-weight: 700;
            color: var(--red);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 20px 0 8px;
        }
        p { margin-bottom: 14px; color: #374151; }
        p:last-child { margin-bottom: 0; }
        ul, ol { padding-left: 24px; margin-bottom: 14px; color: #374151; }
        li { margin-bottom: 6px; }
        li > ul, li > ol { margin-top: 6px; margin-bottom: 0; }
        strong { color: var(--text); }

        code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12.5px;
            background: var(--surface);
            color: var(--navy);
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid var(--border);
        }
        pre {
            background: var(--code-bg);
            color: #a8c0d6;
            border-radius: 8px;
            padding: 18px 22px;
            overflow-x: auto;
            margin: 14px 0;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12.5px;
            line-height: 1.6;
        }
        pre code { background: none; color: inherit; padding: 0; border: none; }

        hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

        /* ── TABLES ── */
        .table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 8px; border: 1px solid var(--border); }
        table { width: 100%; border-collapse: collapse; font-size: 14px; }
        thead { background: var(--navy); color: white; }
        th { padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
        td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
        tr:last-child td { border-bottom: none; }
        tr:nth-child(even) td { background: #FAFBFD; }
        td code { font-size: 12px; }

        /* ── BLOCKQUOTE ── */
        blockquote {
            border-left: 4px solid var(--blue);
            background: var(--surface);
            padding: 14px 18px;
            border-radius: 0 8px 8px 0;
            margin: 14px 0;
            font-size: 14px;
            color: #374151;
        }
        blockquote strong { color: var(--navy); }

        /* ── PROBLEM CARDS ── */
        .problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
        .problem-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-top: 3px solid var(--red);
            border-radius: 8px;
            padding: 18px;
        }
        .problem-card h4 { margin-top: 0; font-size: 13px; }
        .problem-card ul { margin-bottom: 0; }
        .problem-card li { font-size: 13px; }

        /* ── PALETTE ── */
        .palette { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
        .swatch-card {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 9px 14px;
            flex: 1;
            min-width: 180px;
        }
        .swatch-dot { width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.08); }
        .swatch-info { line-height: 1.3; }
        .swatch-hex { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--navy); }
        .swatch-role { font-size: 11px; color: var(--muted); }

        /* ── PRIORITY BLOCKS ── */
        .checklist { list-style: none; padding: 0; }
        .checklist li {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            padding: 7px 0;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
        }
        .checklist li:last-child { border-bottom: none; }
        .check-box {
            width: 18px; height: 18px;
            border: 2px solid var(--border);
            border-radius: 4px;
            flex-shrink: 0;
            margin-top: 3px;
        }
        .priority-high .check-box { border-color: var(--red); }
        .priority-mid  .check-box { border-color: var(--blue); }
        .priority-low  .check-box { border-color: var(--muted); }

        .priority-block { border-radius: 8px; padding: 18px 22px; margin-bottom: 14px; }
        .priority-block--high { background: #FEF2F2; border: 1px solid #FECACA; }
        .priority-block--mid  { background: #EFF6FF; border: 1px solid #BFDBFE; }
        .priority-block--low  { background: #F0FDF4; border: 1px solid #BBF7D0; }
        .priority-block h3 { margin-top: 0; font-size: 15px; scroll-margin-top: 0; }
        .priority-block--high h3 { color: var(--red); }
        .priority-block--mid  h3 { color: var(--blue); }
        .priority-block--low  h3 { color: #16A34A; }

        /* ── WCAG BADGES ── */
        .wcag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
        .wcag--pass { background: #D1FAE5; color: #065F46; }

        /* ── RESPONSIVE ── */
        @media (max-width: 900px) {
            .sidebar { width: 200px; }
        }
        @media (max-width: 700px) {
            .page-body { flex-direction: column; padding: 0 16px; }
            .sidebar {
                position: static;
                height: auto;
                width: 100%;
                border-right: none;
                border-bottom: 1px solid var(--border);
                padding: 20px 0 16px;
            }
            .main-content { padding: 24px 0 60px 0; }
            .doc-nav { padding: 0 16px; }
            .doc-nav__brand span { display: none; }
            .problem-grid { grid-template-columns: 1fr; }
        }
