/* ----- clear[fix] start ----- */
.clearfix:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

.clearfix {
	display: inline-block;
}

.clear {
    clear:both;
    height:1px;
    overflow:hidden;
    margin: 0;
    padding: 0;
}
/* ----- clearfix end -----*/


#account-nav {
    text-align: right;
}

#header h1 {
	float: left;
	padding: 0 20px;
	background: #003D4C;
	font-size: 2em;
}

#header a.logout {
	background: #003D4C;
	color: #FFFFFF;
	font-weight: normal;
}


/* ----- header menu start ----- */
#nav-primary, #nav-primary ul {
	padding: 0;
	margin: 0;
	list-style: none;
	z-index:200;
}

#nav-primary a {
	display: block;
	background: #003D4C;
	color: #FFFFFF;
	text-decoration: none;
	padding: 5px 5px 5px 5px;
}

#nav-primary li {
	float: left;
}

#nav-primary li ul li {
    margin: 0;
    float: none;
}

#nav-primary li ul li a {
    margin: 0 0 0 5px;
    background: #eeeeee;
    color: #003d4c;
}

#nav-primary li ul {
	line-height: 1.2em;
    background: #dddddd;
    border: 2px solid #003d4c;
	position: absolute;
	left: -999em;
}

#nav-primary li:hover ul {
	left: auto;
}

#nav-primary li a:hover {
	background: #FFFFFF;
	color: #003D4C;
}

#nav-primary li a.selected {
	background: #FFFFFF;
	color: #003D4C;
}

#nav-primary li ul li a:hover {
	background: #ffffff;
	color: #003D4C;
}

#nav-primary li ul li {
	background: #003d4c;
}
/* ----- header menu end ----- */


/* ----- expand link start ----- */
a.expand-link {
    padding-right: 25px;
    background-image: url("../img/list-expand.png");
    background-repeat: no-repeat;
    background-position: top right;
}
a.expand-link.expanded {
    background-image: url("../img/list-collapse.png");
}
/* ----- expand link end ----- */

.dont-break {
    float: left;
	clear: none;
}

.index table tr:hover td, .related table tr:hover td {
    background: #cccccc;
}

#flashMessage, #authMessage {
    clear: both;
    font-weight: bold;
    margin: 1em 0;
    text-align: center;
    padding: 4px;
}
#flashMessage.success, #authMessage.success {
    background-color: #00cc44;
    color: #ffffff;
}
#flashMessage.notification, #authMessage.notification {
    background-color: #ffbb00;
    color: #ffffff;
}
#flashMessage.error, #authMessage.error, #authMessage.message {
    background-color: #ff5544;
    color: #ffffff;
}

a.close-flash {
    font-size: 50%;
    color: lightgrey;
    text-decoration: none;
    float: right;
    vertical-align: middle;
}

a.close-flash:hover {
    color: white;
    border: solid 1px white;
}


/** image (eg. product image) on edit form **/
.form div.image {
	padding-left: 10px;
}
.form div.image a.fnc-delete-image {
	margin: 10px;
	font-size: 80%;
}




/* ----- with-selected form ----- */
.with-selected-form .table-options > div {
    float: left;
}
.with-selected-form .mass-check {
    width: 10%;
}
.with-selected-form .paginate-text {
    width: 79%;
    text-align: center;
}
.with-selected-form .paginate-limit {
    width: 10%;
    text-align: right;
}
th.with-selected {
    width: 20px;
}


/* ----- nyro forms ----- */
#nyroModalContent div.form {
	width: 97%;
	border: 0;
	padding: 0;
}

#nyroModalContent div.actions {
	display: none;
}

#nyroModalContent h2 {
	font-size: 120%;
	font-weight: bold;
	text-align: center;
	color: white;
	background-color: #003D4C;
}

#nyroModalContent fieldset {
	border: 1px solid #ccc;
	margin-top: 5px;
	padding: 5px 5px;
}
#nyroModalContent fieldset legend {
	background:#fff;
	color: #e32;
	font-size: 100%;
	font-weight: bold;
}
#nyroModalContent fieldset fieldset {
	margin-top: 0px;
	margin-bottom: 5px;
	padding: 5px 5px;
}
#nyroModalContent fieldset fieldset legend {
	font-size: 90%;
	font-weight: normal;
}
#nyroModalContent fieldset fieldset div {
/*	clear: left; */
	margin: 0 0px;
}







/* dynamic form-list */
div.form-list table tr td {
	border: 0px;
	padding: 2px 6px;
}

div.form-list a#article-new {
	display: inline;
}



.ico-add {
	background: url(../img/plus.png) no-repeat;
	padding-left: 22px;
}


.ico-remove {
	background: url(../img/minus.png) no-repeat;
	padding-left: 22px;
}

.ico-delete.big {
	background: url(../img/ico-big-trash.png) no-repeat;
	padding-left: 32px;
}

.ico-edit.big {
	background: url(../img/ico-big-edit.png) no-repeat;
	padding-left: 32px;
}

a.ico-add {
	text-decoration: none;
}

a.ico-remove {
	display: block;
	text-indent: -9999px;
	overflow: hidden;
	outline: none;
}



.index h2 span {
	color: black;
}

.index h2 a {
	margin: 2px;
}


tr.canceled {
	text-decoration: line-through;
}

/* 🔥 Loading overlay - blokira sve akcije dok traje slanje */
#loadingOverlay {
    display: none; /* Skriveno dok se ne aktivira */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    text-align: center;
    color: white;
    font-size: 20px;
    padding-top: 20%;
}

#loadingOverlay .spinner {
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🔥 Flash poruka */
#flashMessage {
    position: fixed;
    top: 10px;
    right: 10px;
    background: green;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 9999;
}

#flashMessage.error {
    background: red;
}

#flashMessage a.close-flash {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    cursor: pointer;
}

#loadingOverlay {
    display: none; /* Skriven po defaultu */
    position: fixed; /* Fiksirano preko celog prozora */
    top: 0;
    left: 0;
    width: 100vw; /* Širina celog viewporta */
    height: 100vh; /* Visina celog viewporta */
    background: rgba(0, 0, 0, 0.7); /* Lagano zamračena pozadina */
    z-index: 1000; /* Visok Z-indeks da bude iznad svega */
    display: flex; /* Flexbox za centriranje sadržaja */
    justify-content: center; /* Horizontalno centriranje */
    align-items: center; /* Vertikalno centriranje */
    color: white; /* Bijeli tekst */
    font-size: 22px; /* Veći font za tekst */
    font-weight: bold; /* Boldiran tekst */
    text-align: center; /* Tekst centriran */
}

/* Spinner stil */
.loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.3); /* Bijela lagano prozirna */
    border-top: 5px solid #fff; /* Bijela za vrh */
    border-radius: 50%; /* Krug */
    width: 50px; /* Širina */
    height: 50px; /* Visina */
    animation: spin 1s linear infinite; /* Animacija vrtnje */
    margin-bottom: 15px; /* Razmak između spinnera i teksta */
}

/* Animacija za spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


