/* ==========================================================================
   Moodle 4.x Boost Theme — EIDAZ (e-izobraževanje v policiji) Exact Palette
   Sampled 1:1 from lossless 1920x1080 frames of 2026-11-07 12-14-02.mp4
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #1d2125;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: #0f6bbf;
    text-decoration: none;
}
a:hover {
    color: #09447a;
    text-decoration: underline;
}

/* Top Fixed Navbar (60px) */
.md-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 14px;
    z-index: 1030;
}

.md-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.md-eidaz-logo {
    display: inline-flex;
    align-items: center;
    height: 46px;
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none !important;
    margin-right: 10px;
    background: linear-gradient(90deg, #0b7e0b 0%, #5b9e48 48%, #a9c1a7 74%, #f5c500 100%);
    padding: 4px 12px 4px 10px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.md-eidaz-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: #ffffff;
    margin-right: 10px;
}
.md-eidaz-word {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
.md-eidaz-sub {
    font-size: 9.5px;
    font-weight: 600;
    opacity: 0.96;
    white-space: nowrap;
}

.md-nav-link {
    display: inline-flex;
    align-items: center;
    height: 60px;
    padding: 0 12px;
    color: #3b3b3b;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 3px solid transparent;
    text-decoration: none !important;
}
.md-nav-link:hover {
    background-color: #f8f9fa;
    color: #1d2125;
}
.md-nav-link.active {
    border-bottom-color: #0f6bbf;
    color: #1d2125;
    font-weight: 500;
}

.md-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.md-regp-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4fa;
    border: 1px solid #bfd5d9;
    color: #0f6bbf !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none !important;
}
.md-regp-shortcut:hover {
    background: #dceaf7;
}

.md-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
}
.md-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #c83023;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 8px;
    line-height: 14px;
}

.md-avatar-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.md-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9eaef;
    color: #3b3b3b;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 3-Column Page Shell */
.md-shell {
    display: flex;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
}

/* Left Course Index Drawer (285px) */
.md-drawer-left {
    width: 285px;
    min-width: 285px;
    background: #f7f9f9;
    border-right: 1px solid #dee2e6;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    overflow-y: auto;
    padding: 14px 10px 28px 12px;
    transition: margin-left 0.2s ease;
}
.md-drawer-left.collapsed {
    display: none;
}

.md-drawer-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 12px 6px;
    font-weight: 700;
    font-size: 14.5px;
    color: #1d2125;
}
.md-drawer-ctrl {
    background: none;
    border: none;
    color: #495057;
    cursor: pointer;
    font-size: 15px;
    padding: 2px 5px;
    border-radius: 4px;
}
.md-drawer-ctrl:hover {
    background: #e9ecef;
}

.md-tree-sec {
    margin-bottom: 6px;
}
.md-tree-sec-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1d2125;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
}
.md-tree-sec-title:hover {
    background: #e9ecef;
}
.md-tree-items {
    list-style: none;
    margin: 2px 0 6px 0;
    padding: 0 0 0 14px;
}
.md-tree-item a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #343a40;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.md-tree-item a:hover {
    background: #e9ecef;
    color: #1d2125;
}
.md-tree-item a.active {
    background: #0f6bbf;
    color: #ffffff !important;
    font-weight: 500;
}
.md-dot-done {
    color: #357a32;
    font-size: 10px;
}
.md-dot-todo {
    color: #6c757d;
    font-size: 10px;
}

/* Drawer Re-open Tabs when collapsed */
.md-drawer-open-btn {
    position: fixed;
    top: 74px;
    z-index: 1020;
    background: #ccd2d8;
    border: none;
    color: #1d2125;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.md-drawer-open-left {
    left: 0;
    border-radius: 0 6px 6px 0;
}
.md-drawer-open-right {
    right: 0;
    border-radius: 6px 0 0 6px;
}

/* Main Center Content Area */
.md-main {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    padding: 24px 38px 64px 38px;
}
.md-main-inner {
    max-width: 1080px;
    margin: 0 auto;
}

/* Right Block Drawer (315px) */
.md-drawer-right {
    width: 315px;
    min-width: 315px;
    background: #f7f9f9;
    border-left: 1px solid #dee2e6;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    overflow-y: auto;
    padding: 14px;
}
.md-drawer-right.collapsed {
    display: none;
}

.md-qnav-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
}
.md-qnav-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2125;
    margin: 0 0 14px 0;
}
.md-qnav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.md-qnav-btn {
    position: relative;
    width: 30px;
    height: 40px;
    border: 1px solid #8f959e;
    border-radius: 4px;
    background: #ffffff;
    color: #1d2125 !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 13px;
    cursor: pointer;
}
.md-qnav-btn.current {
    border: 2px solid #1d2125;
    font-weight: 700;
}
.md-qnav-btn.disabled-seq {
    pointer-events: none;
    opacity: 0.72;
}
.md-qnav-num {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.md-qnav-status {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #ffffff;
}
.md-qnav-btn.saved .md-qnav-status {
    background: #ced4da;
}
.md-qnav-btn.correct .md-qnav-status {
    background: #d4edda;
    color: #2b6628;
    font-weight: 700;
}
.md-qnav-btn.partial .md-qnav-status {
    background: #fff3cd;
    color: #856404;
    font-weight: 700;
}
.md-qnav-btn.incorrect .md-qnav-status {
    background: #f8d7da;
    color: #a53920;
    font-weight: 700;
}
.md-qnav-btn.flagged::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 9px 9px 0;
    border-color: transparent #ca3120 transparent transparent;
}
.md-qnav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    margin-top: 8px;
}

/* Breadcrumbs & Quiz Header */
.md-breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 14px;
}
.md-breadcrumb span.sep {
    margin: 0 6px;
    color: #adb5bd;
}

.md-quiz-hdr {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.md-quiz-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: #e4077d;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}
.md-doc-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: #399be2;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.md-page-title {
    font-size: 27px;
    font-weight: 700;
    color: #1d2125;
    margin: 0;
}

/* Dates & Intro Box */
.md-dates-box {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    margin-bottom: 18px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}
.md-intro-box {
    background: #f7f9f9;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 22px;
    font-size: 15px;
}
.md-intro-box p {
    margin: 0 0 12px 0;
}
.md-intro-box p:last-child {
    margin-bottom: 0;
}
.md-exam-warn {
    color: #9a1a1a;
    font-weight: 700;
    text-decoration: underline;
}

/* Buttons */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
    font-family: inherit;
}
.md-btn-primary {
    background: #0f6bbf;
    color: #ffffff !important;
}
.md-btn-primary:hover {
    background: #0c589e;
}
.md-btn-secondary {
    background: #ccd2d8;
    color: #1d2125 !important;
}
.md-btn-secondary:hover {
    background: #bfc6cd;
}
.md-btn-sm {
    padding: 5px 11px;
    font-size: 13.5px;
    border-radius: 6px;
}

/* Quiz Meta & Attempts Cards */
.md-quiz-meta {
    margin: 18px 0 24px 0;
    font-size: 14.5px;
    line-height: 2;
}
.md-sec-h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 22px 0 14px 0;
    color: #1d2125;
}
.md-attempts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    margin-top: 12px;
}
.md-attempt-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}
.md-attempt-card-hdr {
    padding: 12px 16px;
    background: #f7f9f9;
    border-bottom: 1px solid #dee2e6;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.md-attempt-card-body {
    padding: 12px 16px;
    font-size: 14px;
}
.md-attempt-kv {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f1f3f5;
}
.md-attempt-kv:last-child {
    border-bottom: none;
}

/* Timer Row */
.md-timer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.md-timer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.md-timer-box {
    background: #ffffff;
    border: 1px solid #8c3f38;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 14px;
    color: #1d2125;
}

/* Two-Column Question Layout (Left Vprašanje X + Right #e6f0f3 Card) */
.md-que-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}
.md-que-info {
    width: 118px;
    min-width: 118px;
    background: #f7f9f9;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #1d2125;
}
.md-que-no {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.md-que-no strong {
    font-size: 17px;
    font-weight: 700;
}
.md-que-state {
    margin-bottom: 6px;
}
.md-que-grade {
    margin-bottom: 8px;
}
.md-flag-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0f6bbf;
    cursor: pointer;
    font-size: 12px;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-family: inherit;
}
.md-flag-toggle.flagged {
    color: #ca3120;
    font-weight: 600;
}

.md-que-content {
    flex: 1;
    min-width: 0;
}
.md-que-formulation {
    background: #e6f0f3;
    border: 1px solid #bfd5d9;
    border-radius: 6px;
    padding: 20px 24px;
    color: #1d2125;
    font-size: 15px;
    line-height: 1.75;
}
.md-que-formulation p {
    margin: 0 0 12px 0;
}
.md-que-formulation p:last-child {
    margin-bottom: 0;
}

/* Inline Cloze & Question Controls */
.md-cloze-input, .md-cloze-select {
    background: #ffffff;
    border: 1px solid #8f959e;
    border-radius: 6px;
    height: 35px;
    padding: 4px 10px;
    font-size: 14.5px;
    color: #1d2125;
    font-family: inherit;
    margin: 2px 3px;
    vertical-align: middle;
}
.md-cloze-input:focus, .md-cloze-select:focus {
    outline: none;
    border-color: #0f6bbf;
    box-shadow: 0 0 0 3px rgba(15,107,191,0.22);
}
.md-cloze-input[disabled], .md-cloze-select[disabled] {
    background: #e9eaef;
    color: #212529;
    cursor: default;
}

.md-cloze-radio-grp {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 4px 6px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.55);
    border-radius: 5px;
}

.md-mc-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.md-mc-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.5;
}
.md-mc-item input {
    margin-top: 4px;
}

/* Feedback Icons + Hover Correct-Answer Popover */
.md-fb-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.md-fb-ok {
    color: #357a32;
    font-weight: 800;
    font-size: 16px;
    margin-left: 3px;
    margin-right: 4px;
    cursor: help;
}
.md-fb-err {
    color: #ca3120;
    font-weight: 800;
    font-size: 16px;
    margin-left: 3px;
    margin-right: 4px;
    cursor: help;
}
.md-fb-wrap[data-correct]:hover::after {
    content: attr(data-correct);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    color: #1d2125;
    border: 1px solid #adb5bd;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16);
    z-index: 999;
}

/* Review General Feedback / Outcome Card (#fcf2e3) */
.md-que-outcome {
    background: #fcf2e3;
    border: 1px solid #f6e5d0;
    color: #846946;
    border-radius: 6px;
    padding: 15px 22px;
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.6;
}
.md-que-outcome strong {
    color: #6b5231;
}

.md-attempt-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 12px;
}

/* Summary & Review Tables */
.md-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px 0;
}
.md-summary-table th, .md-summary-table td {
    padding: 11px 14px;
    text-align: left;
    border-top: 1px solid #dee2e6;
    font-size: 14.5px;
}
.md-summary-table thead th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 700;
}
.md-summary-table tbody tr:nth-child(odd) {
    background: #f7f9f9;
}

.md-review-meta {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    border-bottom: 1px solid #dfe0e3;
}
.md-review-meta tr:nth-child(odd) {
    background: #efefef;
}
.md-review-meta tr:nth-child(even) {
    background: #fafafa;
}
.md-review-meta th {
    width: 170px;
    text-align: right;
    padding: 5px 12px;
    font-size: 13.5px;
    font-weight: 700;
    border-top: 1px solid #dfe0e3;
}
.md-review-meta td {
    padding: 5px 12px;
    font-size: 13.5px;
    border-top: 1px solid #dfe0e3;
}

/* Course Sections & Track Cards */
.md-track-section {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 26px;
    background: #ffffff;
}
.md-track-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.md-track-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.md-pill-erisk { background: #e3f2fd; color: #0d47a1; }
.md-pill-lisk { background: #e8f5e9; color: #1b5e20; }
.md-pill-both { background: #fce4ec; color: #ad1457; }

.md-act-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.12s ease;
}
.md-act-row:hover {
    background: #f8f9fa;
}
.md-act-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.md-act-title {
    font-size: 16px;
    font-weight: 600;
}
.md-act-sub {
    font-size: 13px;
    color: #6c757d;
    margin-top: 2px;
}

/* Modals (Start Attempt & Submit Confirmation) */
.md-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.md-modal-backdrop.open {
    display: flex;
}
.md-modal {
    width: 510px;
    max-width: 94vw;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.25);
    overflow: hidden;
}
.md-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    font-size: 18px;
    font-weight: 600;
}
.md-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #6c757d;
    cursor: pointer;
}
.md-modal-body {
    padding: 20px;
    font-size: 15px;
}
.md-modal-warn {
    background: #f9edd9;
    border: 1px solid #ecdeca;
    color: #7d5a29;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 14.5px;
}
.md-modal-ftr {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #dee2e6;
}
.md-modal-ftr.right {
    justify-content: flex-end;
}

/* Floating ? Help Button */
.md-help-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ccd2d8;
    color: #1d2125;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1010;
}
