/* Napomene, upozorenja, informacije, ... */
.note-box, .warningbox {
	padding: 1.5rem;
	border-radius: 12px;
	margin: 2.5rem 0;
	border-left: 6px solid;
}
.note-box {
	background: #d1ecf1;
	border-color: #007bff;
}
.warningbox {
	background: #f8d7da;
	border-color: #dc3545;
}

/* Kontrola dimenzija slika – sve slike u sadržaju */
.content-img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: transform 0.3s ease;
	cursor: zoom-in;
}
.content-img:hover {
	transform: scale(1.03);
}

/* Grid za slike na vrhu – dve slike pored */
.img-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin: 2rem 0;
}
/* LOKALNI LIGHTBOX */
#myLightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.3);
	backdrop-filter: blur(8px);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	padding: 40px;
}
#myLightbox.show { display: flex; }

#lightboxImg {
	max-width: 94%;
	max-height: 88vh;
	border-radius: 8px;
	box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
#lightboxCaption {
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.75);
	color: white;
	padding: 5px 12px;
	border-radius: 10px;
	font-size: 1.1rem;
	backdrop-filter: blur(4px);
}
#closeLightbox {
	position: absolute;
	top: 20px;
	left: 20px;
	background: rgba(255,255,255,0.1);
	border: 2px solid white;
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
#closeLightbox:hover { background: rgba(235,16,31,0.2); }

/* BACK TO TOP */
#backToTop {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 9998;
	background: transparent;
	border: none;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover #progressCircle { stroke: #004080; }
#backToTop:hover path { stroke: #004080; }

/* LOKALNA PRETRAGA STRANICE */
    .page-search {
        position: fixed;
        top: 5px;
        right: 5px;
        width: 340px;
        background: rgba(0,0,0,0.02);
        padding: 5px;
        border-radius: 10px;
        z-index: 10000;
    }
    .page-search input {
        width: 100%;
		background: rgba(21,14,153,0.05);
        padding: 2px 6px;
        border: 2px solid #ddd;
        border-radius: 8px;
		font-color: #ff9800;
        font-size: 1rem;
        outline: none;
    }
    .page-search .info {
        margin-top: 10px;
        font-size: 0.95rem;
        color: #333;
        text-align: right;
        font-weight: 500;
    }
    .highlight { 
        background: #ffeb3b !important; 
        color: #000 !important; 
        padding: 3px 6px; 
        border-radius: 6px; 
        font-weight: bold;
    }
    .current-highlight { 
        background: #ff9800 !important; 
        color: white !important; 
        outline: 3px solid #e65100;
        outline-offset: 2px;
    }
