/* ----------------------------- */
/* FONT VARIJABLE */
/* ----------------------------- */

:root {
    --font-title: 'Josefin Sans', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --color-primary: #08737f;
    --color-secondary: #fcbb6d;
    --color-accent: #ff3358;
    --color-bg: #e9ecef;
    --color-surface: #ffffff;
    --color-deep-1: #475c7a;
    --color-deep-2: #685d79;
    --color-muted: #ab6c82;
    --color-text: #222222;
    --color-text-muted: #555555;

    --radius-lg: 1.25rem;
    --radius-md: 0.75rem;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Reset / osnovno */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: linear-gradient(135deg, #e9ecef, #fcbb6d1f, #ab6c8220);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--color-deep-1);
    border-bottom-color: rgba(8, 115, 127, 0.4);
}

/* Ne diramo nav-link i .btn, oni već imaju svoje boje */
.nav-link,
.btn {
    border-bottom: none;
}


.site-main {
    flex: 1; /* ovo gura footer dole */
    padding: 3.5rem 0 3.5rem;
    display: flex;
    justify-content: center;
}

/* Kontejner */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header + navigacija */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(
        120deg,
        var(--color-primary),
        var(--color-deep-1),
        var(--color-deep-2)
    );
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1.5rem;
}

/* Brand */

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-title);
}

.brand-title {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* Navigacioni meni */

.main-nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #f8f9fa;
    background: transparent;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    font-family: var(--font-title);
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(252, 187, 109, 0.18);
    box-shadow: 0 0 0 1px rgba(252, 187, 109, 0.8);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Hamburger dugme za mobilni */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(233, 236, 239, 0.08);
    cursor: pointer;
}

.nav-toggle-line {
    height: 2px;
    width: 18px;
    margin: 0 auto;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

/* Toggle animation */

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Glavni deo */

.site-main {
    padding: 2.5rem 0 3rem;
}

.site-main .container {
    background: radial-gradient(circle at top left, #ffffff, #f8f9fa);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    min-height: 260px;
    padding: 2rem 1.75rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.75rem 0 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: #f8f9fa80;
    font-family: var(--font-body);
}

.site-footer p {
    margin: 0;
    text-align: center;
}

/* Responsive */

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: linear-gradient(
            135deg,
            rgba(8, 115, 127, 0.97),
            rgba(71, 92, 122, 0.97)
        );
        transform-origin: top;
        transform: scaleY(0.95);
        opacity: 0;
        pointer-events: none;
        transition: 0.18s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        padding: 0.45rem 1rem 0.8rem;
    }

    .nav-link {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .site-main .container {
        border-radius: 1rem 1rem 0 0;
        padding: 1.6rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------- */
/* Home page layout */
/* ----------------------------- */

.home-content {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    border: 3px solid #ffffff88;
}

.profile-info {
    flex: 1;
    min-width: 260px;
}

.profile-name {
    font-family: var(--font-title);
    font-size: 2.4rem;
    margin: 0 0 0.5rem;
    color: var(--color-deep-2);
}

.profile-title {
    margin: 0.5rem 0 1rem;
    font-size: 1.2rem;
    line-height: 1.55;
}

.profile-title a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s ease;
}

.profile-title a:hover {
    border-bottom: 1px solid var(--color-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }
}

/* ----------------------------- */
/* UUI STRANA – LAYOUT           */
/* ----------------------------- */

.page {
    padding-top: 1.8rem;
    padding-bottom: 2.5rem;
}

/* Breadcrumb */

.course-breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.course-breadcrumb .breadcrumb-separator {
    margin: 0 0.3rem;
    opacity: 0.7;
}

/* Naslov kursa */

.course-header {
    margin-bottom: 1.4rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.course-header-main {
    flex: 1;
}

.course-header-actions .btn {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .course-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


.course-title {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.9rem;
    color: var(--color-deep-2);
}

.course-subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.98rem;
    color: var(--color-text-muted);
}

/* Navigacija sekcija u okviru strane */

.course-sections-nav {
    position: sticky;
    top: 72px; /* ~visina headera; po potrebi koriguj */
    z-index: 5;

    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.4rem 0 1.8rem;
    padding: 0.4rem 0.4rem 0.6rem;

    background: rgba(248, 249, 250, 0.93);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.course-sections-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.86rem;
    text-decoration: none;
    color: var(--color-deep-1);
    background: rgba(233, 236, 239, 0.8);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.course-sections-link:hover {
    background: #fcbb6d40;
    transform: translateY(-1px);
}

.course-sections-link.is-active {
    background: var(--color-primary);
    color: #ffffff;
}

/* Sekcije kursa */

/* Osnovni stil kartica-sekcija */
.course-section {
    margin-bottom: 0; /* jer je sada samo jedna vidljiva */
    padding: 1.2rem 1.3rem 1.4rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    border-left: 4px solid transparent;
}

/* Obaveštenja – akcent (crveno/roze) */
.course-section--obavestenja {
    border-left-color: #ff3358;
}

/* Literatura –  #ab6c82 */
.course-section--literatura {
    border-left-color: #ab6c82;
}

/* Osnovne informacije – neutralna plavo-ljubičasta */
.course-section--osnovne {
    border-left-color: #475c7a;
}

/* Seminarski – teal / primary */
.course-section--seminarski {
    border-left-color: var(--color-primary); /* #08737f */
}

/*  */
.course-section--highlight {
    background: radial-gradient(circle at top left, #fff7f9, #ffe7d2);
    border: 1px solid rgba(255, 51, 88, 0.16);
}

/* Rezultati ispita  */
.course-section--rezultati {
    border-left-color: #685d79; /* ljubičasto-siva  */
}


.course-section-header {
    margin-bottom: 0.9rem;
}


.course-section-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin: 0 0 0.3rem;
    color: var(--color-deep-1);
}

.course-section-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ----------------------------- */
/* CARD STILOVI (Bootstrap-like) */
/* ----------------------------- */

.card {
    border-radius: 0.9rem;
    background: var(--color-surface);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-title);
}

.card-header--info {
    background: linear-gradient(135deg, #08737f, #475c7a);
    color: #ffffff;
}

.card-header--success {
    background: linear-gradient(135deg, #475c7a, #685d79);
    color: #ffffff;
}

.card-header--dark {
    background: #343a40;
    color: #ffffff;
}

.card-header--warning {
    background: linear-gradient(135deg, #fcbb6d, #ab6c82);
    color: #222222;
}

.card-body {
    padding: 1rem 1.1rem 1.1rem;
    font-size: 0.95rem;
}

.card-footer {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* List-group stil */

.list-group {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-group-item {
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    background: #ffffff;
}

.list-group-item:first-child {
    border-top: none;
}

.text-accent {
    color: #ff3358;
}

/* Dugmad */

.course-actions {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: #065862;
    box-shadow: 0 6px 12px rgba(6, 88, 98, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: #ffffff;
    color: var(--color-deep-1);
    border-color: rgba(0, 0, 0, 0.12);
}

.btn-outline:hover {
    background: #f1f3f5;
}

/* Tabela */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.table-sm th,
.table-sm td {
    padding: 0.3rem 0.45rem;
}

.thead-light th {
    background: #f8f9fa;
}

/* Badges, background helpers */

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 999px;
}

.badge-dark {
    background: #343a40;
    color: #ffffff;
}

.badge-accent {
    background: #ff3358;
    color: #ffffff;
}

.bg-light {
    background: #f8f9fa;
}

.border {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mt-4 { margin-top: 1.25rem !important; }

.small {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Obaveštenja kartice */

/* Bolji prikaz notice kartica */
.notice-card {
    background: #fdfdfd;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Glavni naslov unutar obaveštenja */
.notice-empty-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #475c7a; /* tamniji ton */
}

/* Tekst obaveštenja */
.notice-empty-note {
    font-size: 1rem;
    color: #333;
    line-height: 1.65; /* lakše za oči */
    margin-bottom: 0.8rem;
}

/* Razmak i linija između delova */
.notice-card p + p {
    border-top: 1px solid #ececec;
    padding-top: 0.8rem;
}

/* Lepe link boje */
.notice-card a {
    color: #08737f;
    font-weight: 600;
}

.notice-card a:hover {
    color: #ab6c82;
}

/* Responsivnost */

@media (max-width: 720px) {
    .course-sections-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.4rem;
    }

    .course-title {
        font-size: 1.6rem;
    }
}

.course-sections-link--cta {
    margin-left: auto;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
}

.course-sections-link--cta:hover {
    background: #c92046;
    color: #ffffff;
}

code {
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
    font-size: 0.85em;
    background: #f1f3f5;
    padding: 0.1em 0.35em;
    border-radius: 0.35em;
    color: #1f2933;
}

.code-block {
    background: #f8f9fa;
    color: #212529;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
    font-size: 0.87rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.code-block code {
    background: transparent;
    padding: 0;
}


/* ----------------------------- */
/* TABOVI ZA UUI STRANU          */
/* ----------------------------- */

.course-tabs {
    margin-top: 1.5rem;
}

.course-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(233, 236, 239, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.course-tab-button {
    border: none;
    background: transparent;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: var(--font-title);
    cursor: pointer;
    color: var(--color-deep-1);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.1s ease;
}

.course-tab-button:hover {
    background: #fcbb6d40;
    transform: translateY(-1px);
}

.course-tab-button.is-active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(8, 115, 127, 0.4);
}

/* Samo aktivna sekcija je vidljiva */

.course-tabs-content .course-section {
    display: none;
}

.course-tabs-content .course-section.is-active {
    display: block;
}

/* Na manjim ekranima tabovi mogu da se skroluju horizontalno */

@media (max-width: 720px) {
    .course-tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
}


.empty-state {
    margin-top: 1.2rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    text-align: center;
}

.empty-state-text {
    color: #475c7a;
    font-size: 1rem;
    opacity: 0.9;
    font-family: var(--font-body);
}


/* ----------------------------- */
/*   LITERATURA LIST (modern)   */
/* ----------------------------- */

.lit-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.literatura-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.literatura-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.literatura-item:last-child {
    border-bottom: none;
}

.literatura-icon {
    width: 28px;
    height: 28px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lit-icon-svg {
    width: 16px;
    height: 16px;
    color: #475c7a;
}

.literatura-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lit-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.lit-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lit-links a {
    font-size: 0.9rem;
    color: var(--color-primary);
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.lit-links a:hover {
    color: #ab6c82;
}

/* ----------------------------- */
/*       OSNOVNE INFORMACIJE     */
/* ----------------------------- */

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-item {
    padding: 0.6rem 0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
}

.info-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-primary);
    font-size: 1rem;
}

.info-content {
    margin-left: 0.2rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.info-sublist {
    list-style: disc;
    margin-left: 1.25rem;
    margin-top: 0.35rem;
}

.info-sublist li {
    margin-bottom: 0.3rem;
}

.info-sublist li:last-child {
    margin-bottom: 0;
}

.text-accent {
    color: #ff3358;
}

/* hr separator – vrlo diskretna linija */
.card-body hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 0.8rem 0;
}
