/** @format */

:root {
    --bs-link-color: #2a3547;
    --bs-border-color: #ebf1f6;
    --bs-primary-bg-subtle: rgba(93, 135, 255, 0.1);
    --bs-primary: #5d87ff;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.btn-panel-default {
    background: #5b60d2;
    border: 1px solid #5b60d2;
}

.btn-panel-default:hover {
    background: #383ebb;
    border: 1px solid #383ebb;
}

.pozadina {
    background: #4e54c8; /* fallback for old browsers */
    background: -webkit-linear-gradient(
        to right,
        #8f94fb,
        #4e54c8
    ); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(
        to right,
        #8f94fb,
        #4e54c8
    ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.pozadina-korisnik {
    background: #3654ea;
    background: -webkit-linear-gradient(to right, #5b60d2, #3654ea);
    background: linear-gradient(to right, #5b60d2, #3654ea);
}

.login-form {
    width: 50%;
    background: white;
    border-radius: 16px;
}

.login-group {
    width: 60% !important;
    text-align: center;
    margin: 0 auto;
}

.login-group input.form-control {
    background: #5b60d214;
}

/* SIDE BAR */

.sidebar {
    background-color: white;
    min-height: 100vh;
    border-right: 1px solid var(--bs-border-color);
}

.sidebar-logo {
    text-align: center;
    display: flex;
}

.sidebar-logo img {
    max-width: 50px;
}

.sidebar-title {
    color: var(--bs-link-color);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 0;
    line-height: 26px;
    text-transform: uppercase;
}

.sidebar-link {
    border-radius: 7px;
}

.sidebar-link a svg {
    min-width: 20px;
}

.sidebar-link:hover {
    background: #f1f1f1;
    background: var(--bs-primary-bg-subtle);
}
.sidebar-link:hover a {
    color: var(--bs-primary);
}

.sidebar-link:hover a svg path {
    fill: var(--bs-primary);
}

/* Aktivan */

.sidebar-link.aktivan {
    background: #f1f1f1;
    background: var(--bs-primary-bg-subtle);
}
.sidebar-link.aktivan a {
    color: var(--bs-primary);
}

.sidebar-link.aktivan a svg path {
    fill: var(--bs-primary);
}

.sidebar-link a {
    display: flex;
    font-size: 14px;
    white-space: nowrap;
    align-items: center;
    line-height: 25px;
    position: relative;
    margin: 0px 0px 2px;
    padding: 10px;
    border-radius: 7px;
    gap: 15px;
    text-decoration: none;
    font-weight: 400;
    color: var(--bs-link-color);
}

/* SIDEBAR MOBILNI */

.sidebar-mob {
    height: auto !important;
    padding: 8px;
}

.sidebar-mob .sidebar-hamburger {
    width: 32px;
}

/* TRAKA */

.traka-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    font-weight: bold;
    height: 170px;
    margin: 8px 0;
}

.traka-col:last-child {
    padding-right: 0;
}

.traka-col:first-child {
    padding-left: 0;
}

.traka-item-zuta {
    color: #ffae1f;
    background: #fef5e5 !important;
}

.traka-item-plava {
    color: #5d87ff;
    background: #5d87ff1a !important;
}

.traka-item-zelena {
    color: #13deb9;
    background: #e6fffa !important;
}

.traka-item-crvena {
    color: #fa896b;
    background: #fbf2ef !important;
}

.traka-item img {
    margin-bottom: 16px;
    width: 48px;
}

.traka-item .naslov {
    text-align: center;
    margin-bottom: 4px;
    font-size: 14px;
}

.traka-item .podnaslov {
    margin: 0;
    font-size: 18px;
}

.link-fix {
    color: inherit;
    text-decoration: none;
}

.input {
    outline: none;
    padding: 8px 4px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #5a6a85;
    border: var(--bs-border-width) solid #dfe5ef;
    border-radius: 7px;
    box-shadow: unset;
    display: block;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
}

.input-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2a3547;
    font-size: 14px;
}

/* Style for the input field */
.select2-container--default .select2-selection--multiple {
    width: 100%;
    border: 1px solid #dfe5ef !important;
    border-radius: 7px;
    height: 39px;
    outline: none;
    overflow: hidden !important;
    /* height: auto !important; */
}

.select2-container--default .select2-selection--multiple:focus {
    outline: none;
}

/* Style for the selected items */
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    font-size: 14px;
}

/* Style for the dropdown items */
.select2-container--default .select2-results__option {
    padding: 8px 4px;
}

.h-input {
    height: 38.6px;
}
/* POLJE DESNO */

.kartica {
    padding: 30px;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    border: 1px solid #ebf1f6a1;
    border-radius: 7px;
    box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px,
        rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
}

.polje-desno {
}

.polje-desno .naslov {
    font-size: 18px;
    font-weight: bold;
}

.polje-desno .list-item {
    display: flex;
    padding: 8px 0;
}

.polje-desno .list-item:not(:last-child) {
    border-bottom: 1px solid #ebf1f6;
}

.polje-desno .list-item img {
    width: 48px;
    height: 48px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid #ebf1f6a1;
}

.polje-desno .list-item .naslov {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-overflow: ellipsis;
    overflow: hidden;
}
.polje-desno .list-item .podnaslov {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0;
}

.polje-desno .list-item .tekstovi {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bedz-plavi {
    background: #5d87ff1a;
    border-radius: 2px;
    padding: 2px 8px;
    color: #5d87ff !important;
    font-weight: bold;
    width: max-content;
    display: block;
}

.bedz-zeleni {
    background: #e6fffa;
    border-radius: 2px;
    padding: 2px 8px;
    color: #13deb9 !important;
    font-weight: bold;
    width: max-content;
    display: block;
}

.bedz-zuti {
    background: #fef5e5;
    border-radius: 2px;
    padding: 2px 8px;
    color: #ffae1f !important;
    font-weight: bold;
    width: max-content;
    display: block;
}

.bedz-crveni {
    background: #fbf2ef;
    border-radius: 2px;
    padding: 2px 8px;
    color: #fa896b !important;
    font-weight: bold;
    width: max-content;
    display: block;
}

.material-forma form {
    padding: 50px;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    width: 60%;
    font-size: 14px;
}

/* POLJE LEVO */

.polje-levo {
}

.polje-levo .naslov {
    font-size: 18px;
    font-weight: bold;
}

.polje-levo .dijagram-tekst .naslov-div {
    display: flex;
    align-items: baseline;
}

.polje-levo .dijagram-tekst .naslov-div .ikonica {
    padding: 12px;

    border-radius: 7px;
    font-size: 0px;
}

.polje-levo .dijagram-tekst .naslov-div .ikonica.zelena {
    background: #e6fffa;
}

.polje-levo .dijagram-tekst .naslov-div .ikonica.crvena {
    background: #fbf2ef;
}

.polje-levo .dijagram-tekst .naslov-div .ikonica svg {
    width: 22px;
    height: 22px;
}

.polje-levo .dijagram-tekst .naslov-div .ikonica svg.zelena path {
    fill: #13deb9;
}

.polje-levo .dijagram-tekst .naslov-div .ikonica svg.crvena path {
    fill: #fa896b;
}

.polje-levo .dijagram-tekst .naslov-div .naslov-okvir .naslov {
    font-size: 24px;
}

.polje-levo .dijagram-tekst .naslov-div .naslov-okvir {
    margin-left: 16px;
}

.polje-levo .dijagram-tekst .naslov-div .naslov-okvir .podnaslov {
    font-size: 12px;
}

.dropdown-izgled {
    outline: none;
    padding: 8px 4px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #5a6a85;
    border: var(--bs-border-width) solid #dfe5ef;
    border-radius: 7px;
    box-shadow: unset;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dijagram-tekst {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.dugme-primary {
    border: 0;
    border-radius: 7px;
    color: white;
    padding: 7px 16px;
    font-size: 14px;
}

.dugme-crvena {
    background: #fa896b;
}

.dugme-zelena {
    background: #13deb9;
}

.dugme-plava {
    background: #5d87ff;
}

.dugme-zuta {
    background: #ffae1f;
}

/* PONUDE */

.tabela-card {
    padding: 30px;
    box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px,
        rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
}

.tabela-card thead {
    vertical-align: bottom;
}

.tabela-card th {
    border-color: #ebf1f6 !important;
    padding: 16px 16px;
    font-size: 14px;
}

.tabela-card td {
    border-color: #ebf1f6 !important;
    padding: 16px 16px;
    font-size: 14px;
    vertical-align: top;
}

.tabela-card td img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 7px;
    margin-right: 8px;
    border: 1px solid #ebf1f6a1;
}

table.dataTable.no-footer {
    border-bottom: none;
}

/* Sakrivamo DataTables default search */
div#tabela-ponude_filter {
    display: none;
}

/*********** KVIZ IZMENA ***********/

.pitanje {
    background-color: white;
    margin: 0 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    border: 1px solid #ebf1f6a1;
    border-radius: 7px;
    box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px,
        rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
}

.obrisi-pitanje {
    color: red;
    background: none;
    border: none;
    font-size: 14px;
}

/***********************************/

/* ZAHTEV ZA DODAVANJE */
.akcija {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    margin: 0 4px;
    cursor: pointer;
}

#ToastPoruka {
    position: absolute;
    right: 16px;
    bottom: 16px;
}

/* NOVI KUPON */

.kartica-naslov {
    border-radius: 7px;
    font-weight: 600;
    font-size: 18px;
    padding: 20px;
}

.kartica-naslov img {
    width: 40px;
    margin-left: 16px;
}

.kupon-mali-preview {
    display: flex;
    flex-direction: row;
}

.kupon-mali-preview .slika-okvir {
    position: relative;
}

.kupon-mali-preview .slika-okvir .popust {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 10px;
    padding: 1px 2px;
    color: white;
    background: #ffae1f;
    border-radius: 7px;
}

.kupon-mali-preview .tekst-okvir .popust {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    padding: 1px 2px;
    color: white;
    background: #ffae1f;
    border-radius: 7px;
}

.kupon-mali-preview .slika-okvir img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid #ebf1f6a1;
}

.kupon-mali-preview .tekst-okvir {
    display: flex;
    flex-direction: column;
}

.kupon-mali-preview .tekst-okvir .naziv {
    font-weight: bold;
    margin-left: 8px;
    font-size: 14px;
}

.kupon-mali-preview .tekst-okvir .firma {
    margin-left: 8px;
    font-size: 10px;
}

.kupon-mali-preview .tekst-okvir .kolicina {
    margin-left: 8px;
    font-size: 10px;
}

.kupon-mali-preview .tekst-okvir .istek {
    margin-left: 8px;
    font-size: 10px;
}

.kupon-mali-preview .tekst-okvir .cena {
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
}

.kupon-mali-preview .tekst-okvir .staracena {
    text-decoration: line-through;
    font-size: 10px;
}

/* OBJEKTI */

.firma-okvir {
    position: relative;
    min-height: 200px;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, #5d87ffb3, #00000099);
    border-radius: 7px;
}

.firma-okvir img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    border-radius: 7px;
}

.firma-okvir p {
    position: absolute;
    bottom: 8px;
    margin-bottom: 0;
    left: 8px;
    right: 8px;
    color: white;
    font-weight: bold;
}

.firma-okvir .obrisi {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    color: #fa896b;
    background: #fbf2ef !important;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 4px;
}

.obrisi svg path {
    stroke: #fa896b;
}

.izmeni svg path {
    fill: #ffae1f;
}

.firma-okvir .izmeni {
    position: absolute;
    right: 38px;
    top: 8px;
    width: 24px;
    height: 24px;
    background: #fef5e5 !important;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 4px;
}

.akcija-izmeni {
    width: 24px;
    height: 24px;
    background: #fef5e5 !important;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 4px;
}

.akcija-obrisi {
    width: 24px;
    height: 24px;
    color: #fa896b;
    background: #fbf2ef !important;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 4px;
}

.akcija-izmeni svg path {
    fill: #ffae1f;
}

.akcija-obrisi svg path {
    stroke: #fa896b;
}

#map {
    min-height: 300px;
}

span.select2-selection.select2-selection--multiple {
    height: auto !important;
}

/* MODAL */

.modal-title {
    font-size: 17.5px !important;
    font-weight: bold;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.modal-footer button {
    font-size: 14px;
}

.modal-content {
    border-radius: 15px;
}

/* BREAK POINTS */

@media (max-width: 400px) {
}

@media (max-width: 767.98px) {
    .rate-section {
        width: 100%;
    }

    .sidebar {
        min-height: fit-content !important;
    }

    .login-form {
        width: 70%;
    }

    .traka-col:nth-child(2n) {
        padding-right: 0;
    }

    .traka-col:nth-child(2n + 1) {
        padding-left: 0;
    }

    .ponude-filter input,
    select {
        margin: 4px 0;
        width: 100% !important;
    }

    .ponude-filter {
        flex-direction: column;
    }

    .kartica {
        padding: 16px 8px;
    }

    .material-forma form {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .login-form {
        width: 90%;
    }
}
@media (max-width: 991.98px) {
}

@media (max-width: 1199.98px) {
}

@media (max-width: 1399.98px) {
}

/* ================================================= */
/* KORISNIK deo */
/* ================================================= */

/* Common styles for korisnik pages */
body.korisnik-page {
    background-color: rgb(241, 241, 241) !important;
}

.category-card,
.objava-card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card:hover,
.objava-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-card:focus,
.objava-card:focus {
    box-shadow: 0;
    outline: none;
}

.categories-container {
    padding: 8px;
}

.objave-container {
    padding: 8px;
}

.subjects-container {
    padding: 8px;
}

.notification-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px;
}

.notification-badge {
    font-size: 11px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000;
}

.main-container {
    min-height: 100vh;
}

h2.h4 {
    font-size: 1.5rem;
}

.text-primary {
    color: #3654ea !important;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(54, 84, 234, 0.3);
    border-radius: 50%;
    border-top-color: #3654ea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.back-button {
    color: #3654ea;
    text-decoration: none;
    font-weight: 500;
}

.back-button:hover {
    color: #2a45d4;
    text-decoration: underline;
}

/* Subject cards for predmeti.php */
.subject-card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
}

.subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.subject-card:focus {
    box-shadow: 0 0 0 0.2rem rgba(54, 84, 234, 0.25);
    outline: none;
}

.subject-card.not-enrolled {
    background: rgb(227, 227, 227) !important;
}

.subject-card.not-enrolled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.grayscale {
    filter: grayscale(100%);
}

/* Type badges */
.type-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.type-badge.video {
    background-color: #ffeaa7;
    color: #636e72;
}

.type-badge.kviz {
    background-color: #00b894;
    color: white;
}

.type-badge.pdf {
    background-color: #fd79a8;
    color: white;
}

/* Video player styles */
.video-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.video-player {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

/* Plyr.js custom styling */
.plyr {
    border-radius: 16px;
}

.plyr__video-wrapper {
    border-radius: 16px;
    pointer-events: auto !important;
}

/* Custom Plyr controls */
.plyr--full-ui input[type="range"] {
    color: #3654ea;
}

.plyr__control--overlaid {
    background: rgba(54, 84, 234, 0.9);
}

.plyr__control--overlaid:hover {
    background: rgba(54, 84, 234, 1);
}

.plyr__controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Security: Disable text selection on player */
.plyr,
.plyr * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Hide YouTube branding, title, and links completely */
.plyr iframe {
    pointer-events: none !important;
}

/* Aggressive YouTube element hiding */
.plyr iframe[src*="youtube"] {
    position: relative !important;
}

/* Hide all YouTube UI elements that contain links */
.plyr__video-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    pointer-events: none;
}

/* Multiple overlays to block different areas */
.plyr__video-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.01), transparent);
    z-index: 1000;
    pointer-events: none;
}

/* Block YouTube watermark area */
.video-security-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    pointer-events: none !important;
    z-index: 2147483647 !important;
    background: transparent !important;
}

/* Additional security overlays */
.yt-title-block {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100px !important;
    background: rgba(0, 0, 0, 0.01) !important;
    z-index: 2147483646 !important;
    pointer-events: none !important;
}

.yt-watermark-block {
    position: absolute !important;
    bottom: 50px !important;
    right: 0 !important;
    width: 120px !important;
    height: 80px !important;
    background: rgba(0, 0, 0, 0.01) !important;
    z-index: 2147483645 !important;
    pointer-events: none !important;
}

.video-info {
    padding: 2rem;
    text-align: center;
}

.video-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.video-icon {
    width: 64px;
    height: 64px;
    margin: 1rem auto;
    border-radius: 8px;
    object-fit: cover;
}

.video-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Security styles to prevent selection and context menu */

.video-container * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading spinner */
.video-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(54, 84, 234, 0.3);
    border-radius: 50%;
    border-top-color: #3654ea;
    animation: spin 1s ease-in-out infinite;
}

/* Quiz styles */
.quiz-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 500px;
}

.quiz-header {
    background: linear-gradient(135deg, #3654ea, #2a45d4);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.quiz-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.quiz-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.question-container {
    padding: 2rem;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.answer-btn {
    width: 100%;
    margin-bottom: 0.8rem;
    padding: 1rem;
    border: 2px solid #3654ea;
    background: white;
    color: #3654ea;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}

.answer-btn:hover {
    background: #3654ea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(54, 84, 234, 0.3);
}

.answer-btn.selected {
    background: #3654ea;
    color: white;
    border-color: #3654ea;
}

.answer-btn.correct {
    background: #00b894 !important;
    border-color: #00b894 !important;
    color: white !important;
}

.answer-btn.incorrect {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}

.answer-btn.disabled,
.answer-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

.next-question-btn {
    background: #3654ea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 1rem;
}

.next-question-btn:hover {
    background: #2a45d4;
}

.next-question-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.results-screen {
    text-align: center;
    padding: 2rem;
}

.results-score {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.results-score.good {
    color: #00b894;
}

.results-score.average {
    color: #f39c12;
}

.results-score.poor {
    color: #e74c3c;
}

.results-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.incorrect-questions {
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.incorrect-question {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.incorrect-question:last-child {
    border-bottom: none;
}

/* Security styles */
.quiz-container * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Additional unique styles from kviz.php */
.quiz-content {
    padding: 2rem;
}

.answer-btn.show-correct {
    background: #00b894 !important;
    border-color: #00b894 !important;
    color: white !important;
}

.progress-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    margin-top: 1rem;
}

.results-container {
    text-align: center;
    padding: 2rem;
}

/* PDF viewer styles from pdf.php */
.content-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-content {
    min-height: 60vh;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    border-bottom-color: #3654ea;
    color: #3654ea;
    font-weight: bold;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #3654ea;
}

.lesson-content {
    padding: 2rem;
    text-align: center;
}

.lesson-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.lesson-icon {
    width: 64px;
    height: 64px;
    margin: 1rem auto;
    border-radius: 8px;
}

.lesson-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.pdf-container {
    height: 70vh;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: auto;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.pdf-viewer {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    display: block;
    margin: 0 auto;
    background: #f5f5f5;
    object-fit: contain;
}

.pdf-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.pdf-container canvas {
    pointer-events: none;
}

.error-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70vh;
    color: #6c757d;
}

.breadcrumb-custom {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-custom a {
    color: #3654ea;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    text-decoration: underline;
}

/* Notifications page styles */
.notifications-container {
    padding: 0 16px;
}

.notification-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin: 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: left;
    width: 100%;
}

.notification-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.notification-icon img {
    width: 32px;
    height: 32px;
}

.notification-content {
    flex: 1;
    padding-left: 16px;
    min-width: 0;
}

.notification-title {
    color: black;
    font-weight: bold;
    font-size: 18px;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-date {
    color: #666666;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    width: 12px;
    height: 12px;
    background-color: #dc3545;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 8px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

/* Rate Section Styles */
.rate-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 20px;
    background-color: #fafbfc;
    width: 60%;
}

.rate-section-title {
    color: var(--bs-link-color);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bs-primary);
    display: inline-block;
}

.rate-container {
    margin-top: 16px;
}

.rate-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.rate-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rate-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.rate-title {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.rate-summary {
    margin-top: 16px;
}

.rate-summary .alert {
    margin-bottom: 0;
    font-size: 14px;
    padding: 12px 16px;
}

.rata-iznos {
    font-weight: 500;
}

/* Rate form field adjustments */
.rate-section .form-label {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
    margin-bottom: 4px;
}

.rate-section .form-control {
    font-size: 14px;
    border-color: #dee2e6;
}

.rate-section .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(93, 135, 255, 0.25);
}

/* Rate Status Colors */
.rate-status-placeno {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.rate-status-nije-placeno {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

.rate-status-placeno:focus {
    background-color: #c3e6cb !important;
    border-color: #a3d2a5 !important;
    box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.25) !important;
}

.rate-status-nije-placeno:focus {
    background-color: #f5c6cb !important;
    border-color: #f1b0b7 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Payment Badge Styles */
.payment-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    margin-left: 6px;
    margin-right: 6px;
}

.sidebar-link {
    position: relative;
}

/* Overdue Payment Alert Styles */
.overdue-payment-alert {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    margin-bottom: 24px;
}

.overdue-payment-alert .alert-heading {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.overdue-payment-alert p {
    margin-bottom: 12px;
    line-height: 1.4;
}

.overdue-payment-alert .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.overdue-payment-alert .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

/* Next Payment Info Styles */
.next-payment-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border: none;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
    margin-bottom: 24px;
}

.next-payment-info .alert-heading {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.next-payment-info p {
    margin-bottom: 12px;
    line-height: 1.4;
}

.next-payment-info .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.next-payment-info .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rate-section {
        padding: 16px;
    }

    .rate-item {
        padding: 12px;
    }

    .overdue-payment-alert,
    .next-payment-info {
        margin-bottom: 16px;
    }

    .overdue-payment-alert .alert-heading,
    .next-payment-info .alert-heading {
        font-size: 14px;
    }

    .payment-badge {
        font-size: 9px;
        min-width: 14px;
        height: 14px;
    }

    .rate-section-title {
        font-size: 15px;
    }
}
