
@media (max-width: 1400px) {
    .showcase .showcase-img {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        min-height: 200px;
        height: 250px;
    }
}
/* -----------------------------------------za sve ekrane */

html, body {
    margin: 0;
    padding: 0;
    overflow-x:hidden;
}
.nav-link.active {
    border-radius: 5px; /* Zaobljeni uglovi (opcionalno) */
}

.fit-cover {
    object-fit: cover;
}

.firme {
    object-fit: contain;
    width: auto;
    height: 100%;
    /*margin: auto;*/
    max-width: 50px;
}
.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.logo {
    max-width: 120px;
}
.showcase .showcase-img {
    min-height: 30rem;
    background-size: cover;
}
.firma-info {
    display: flex;
    justify-content: center; /* Centriranje na velikim ekranima */
    gap: 10px; /* Razmak između elemenata */
    flex-wrap: wrap; /* Omogućava prelom na manje ekrane */
    text-align: center;
}

.firma-info p {
    margin: 0; /* Uklanja podrazumevane margine paragrafa */
}

.bs-icon {
    --bs-icon-size: .75rem;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    font-size: var(--bs-icon-size);
    width: calc(var(--bs-icon-size) * 2);
    height: calc(var(--bs-icon-size) * 2);
    color: var(--bs-gray-dark);
}

.bs-icon-xs {
    --bs-icon-size: 1rem;
    width: calc(var(--bs-icon-size) * 1.5);
    height: calc(var(--bs-icon-size) * 1.5);
}

.bs-icon-sm {
    --bs-icon-size: 1rem;
}

.bs-icon-md {
    --bs-icon-size: 1.5rem;
}

.bs-icon-lg {
    --bs-icon-size: 2rem;
}

.bs-icon-xl {
    --bs-icon-size: 2.5rem;
}

.bs-icon.bs-icon-primary {
    color: var(--bs-white);
    background: var(--bs-gray-700);
}

.bs-icon.bs-icon-primary-light {
    color: var(--bs-gray-700);
    background: rgba(var(--bs-primary-rgb), .2);
}

.bs-icon.bs-icon-semi-white {
    color: var(--bs-primary);
    background: rgba(255, 255, 255, .5);
}
.bs-icon.bs-icon-rounded {
    border-radius: .5rem;
}

.bs-icon.bs-icon-circle {
    border-radius: 50%;
}

[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

[type=radio] + img {
    cursor: pointer;
}

[type=radio]:checked + img {
    outline: 3px solid #ffffff;
    -webkit-box-shadow: 10px 10px 5px 5px rgb(46, 43, 43);
    -moz-box-shadow: 10px 10px 5px 5px rgb(46, 43, 43);
    box-shadow: 10px 10px 5px 5px rgb(46, 43, 43);

}
select[multiple] {
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-size: 16px;
}

select[multiple]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#SettingsW .card {
    border: solid 2px rgb(202, 186, 186);
}
.satt {
    display: none;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.carousel-caption h1 {
    font-size: 1.2rem;
}
.carousel-caption p {
    font-size: 1rem;
}
.yellow-text {
    color: #ffc107;
}
.informacije {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(60px); /* Blur efekat */
    color:#ffffff;
}
.navbar-toggler-icon {
    filter: invert(1);
}
/* PONUDA*/
@supports not (position: sticky) {
    .filtr-controls {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 10px 0;
    }

    /* Osigurava da sadržaj ispod ne bude pokriven */
    .filtr-container {
        margin-top: 60px;  /* Prilagodi prema visini menija */
    }
}

.filtr-item {
    padding-top: 30px;
}

.filtr-controls {
    position: sticky;
    top: 0;
    padding: 10px;
    z-index: 1000; /* Da ostane iznad ostalog sadržaja */
    backdrop-filter: blur(60px); /* Blur efekat */
    -webkit-backdrop-filter: blur(60px); /* Podrška za Safari */
    transition: background 0.3s ease; /* Glatka promena efekta */
}

.filtr-controls span {
    cursor: pointer;
}

.filtr-controls span:after {
    content: ' ';
    width: 0;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 50%;
    background: transparent;
    -webkit-transition: all .6s ease;
    transition: all .8s ease;
}

.filtr-controls span.active:after {
    width: 100%;
    left: 0;

}

.filtr-loading {
    border: 5px solid #333;
    position: relative;
    border-radius: 40px;
    height: 40px;
    left: 50%;
    margin: 80px 0;
    opacity: 0;
    top: 0;
    width: 40px;
    z-index: 2;
    -webkit-animation: pulsate 1s ease-out infinite;
    animation: pulsate 1s ease-out infinite;
}

@keyframes pulsate {
}

/* boje za korisnika PONUDA*/

#NazivFirme {
    font-size: 1.5rem;
    background: rgba(0,0,0, 0.4); /* Poluprovidna bela */
    backdrop-filter: blur(10px); /* Blur efekat */
    -webkit-backdrop-filter: blur(10px); /* Podrška za Safari */
    border-radius: 15px; /* Zaobljeni uglovi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Blaga senka */
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgb(202, 186, 186);
}
#PonudaFirme {
    background: rgba(0,0,0, 0.4); /* Poluprovidna bela */
    backdrop-filter: blur(10px); /* Blur efekat */
    -webkit-backdrop-filter: blur(10px); /* Podrška za Safari */
    border-radius: 15px; /* Zaobljeni uglovi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Blaga senka */
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 5px;
}
/* za upload iz sabloni*/


.template-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #0d6efd;
}

.template-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.template-preview {
    position: relative;
    overflow: hidden;
    background-color: #343a40;
}

.template-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.template-card:hover .template-preview::before {
    opacity: 1;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

/* Improved pagination */
.pagination .page-link {
    color: #6c757d;
    background-color: #343a40;
    border-color: #495057;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #343a40;
    border-color: #495057;
}

.pagination .page-link:hover {
    color: white;
    background-color: #495057;
    border-color: #6c757d;
}

/* Tab styling */
.nav-tabs .nav-link {
    color: #adb5bd;
    border-color: #495057;
    background-color: #343a40;
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: #212529;
    border-color: #495057 #495057 #212529;
}

/* Search and filter controls */
.form-control, .form-select {
    background-color: #343a40;
    border-color: #495057;
    color: white;
}

.form-control:focus, .form-select:focus {
    background-color: #343a40;
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}



/* klizac za on-off */
.custom-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-switch {
    position: relative;
    width: 80px;
    height: 34px;
}

.custom-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #90ee90;
}

input:checked + .slider:before {
    transform: translateX(46px);
}

.slider-text {
    position: absolute;
    width: 100%;
    top: 6px;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    pointer-events: none;
}
/* za naslov i tekst za listu kartica*/
.media-container {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.media-container img,
.media-container video {
    display: block;
    width: 100%;
    height: auto;
}

.media-container .media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* crna sa 50% providnosti */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 12px;
    box-sizing: border-box;
}

/* Stil naslova i paragrafa unutar overlay-a */
.media-container .media-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
}
.media-container .media-overlay p {
    margin: 4px 0 0;
    font-size: 0.9rem;
}
/* ----------------------------------------------------min width 576px - sm */
@media (min-width: 576px) {
    #Sidebar {
        overflow: hidden;
        height: 160px;
    }

    #Logo {
        padding-top: 10px;
        margin-bottom: 10px;
        max-width: 120px;
    }
    /*clock*/
    .satt {
        display: none;
    }
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    .carousel-caption p {
        font-size: 1.3rem;
    }
    .firma-info {
        font-size: 1.3rem;
    }
}

/* ----------------------------------------------------min width 768px - md */
@media (min-width: 768px) {
    .firma-info {
        font-size: 1.3rem;
    }
}
.visina {
    max-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visina img,
.visina video {
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}
/* ----------------------------------------------------min width 992px - lg*/
@media (min-width: 992px) {

    #Screen {
        max-height: 100vh;
    }

    /*clock*/
    .satt {
        display: flex;
    }
    .digital::before, .digital::after {
        position: absolute;
        content: attr(data-number);
        left: 0;
        right: 0;
        overflow: hidden;
    }

    .digital::before {
        top: 0;
        bottom: 50%;
        border-radius: 10px 10px 0 0;
    }

    .digital::after {
        top: 50%;
        bottom: 0;
        line-height: 0;
        border-radius: 0 0 10px 10px;
    }

    .digital.front::after, .digital.back::before {
        z-index: 1;
    }

    .digital.back::after {
        transform-origin: top center;
        transform: rotateX(0.5turn);
        z-index: 2;
    }

    .digital.front::before {
        z-index: 3;
    }

    .flip.running .front::before {
        -webkit-transform-origin: center bottom;
        -ms-transform-origin: center bottom;
        transform-origin: center bottom;
        -webkit-animation: frontFlipDown 0.7s ease-in-out;
        animation: frontFlipDown 0.7s ease-in-out;
        -webkit-box-shadow: 0 -2px 6px rgba(255, 255, 255, 0.3);
        box-shadow: 0 -2px 6px rgba(255, 255, 255, 0.3);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .flip.running .back::after {
        -webkit-animation: backFlipDown 0.7s ease-in-out;
        animation: backFlipDown 0.7s ease-in-out;
    }

    @keyframes frontFlipDown {
        to {
            -webkit-transform: rotateX(0.5turn);
            transform: rotateX(0.5turn);
        }
    }

    @keyframes backFlipDown {
        to {
            -webkit-transform: rotateX(0);
            transform: rotateX(0);
        }
    }
    /*testiranje kalendar*/



    /*kraj test kalendar*/



    #Logo, #Qrcode {
        max-width: 150px;
        max-height: 150px;

    }
    img {
        object-fit: contain;
        width: auto;
        height: 100%;
        margin: auto;
    }
    .flip {
        position: relative;
        /*font-weight: bold;*/
        width: 100%;
        height: 6.4rem;
        margin-right: 1px;
        font-size: 3.8rem;
        line-height: 6.4rem;
        text-align: center;
        border-radius: 10px;

    }

    .divider {
        font-size: 3rem;
        line-height: 6rem;
        font-style: normal;
    }
    .naslovDatum{
        font-size: 1.8rem;
    }
    .brojDatum{
        font-size: 5rem;

    }
    .nazivMesec{
        font-size: 2.3rem;
    }
    .naslovRN{
        font-size: 1.8rem;
    }
    .brojRN{
        font-size: 5rem;
    }
    .nazivDan{
        font-size: 2.3rem;
    }
    #Sidebar {
        overflow: hidden;
        height: 100vh;
    }
    #Sidebar, #MainContent {
        max-height: 100vh;
    }
    #Reklama, #CompanyInfo {
        height: 8.3vh;
        margin: auto;
    }
    #Gallery {
        max-height: 83.4vh;
        display: flex;
    }
    .carousel-item {
        transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    }

    .carousel-item.active {
        display: block;
    }
    .carousel-item img, .carousel-item video {
        max-height: 83.4vh;
        width: 100%;
        object-fit: contain;
        margin: auto;
    }
    .carousel-item img.landscape {
        width: 100%;
        max-height: 83.4vh;
    }
    .carousel-item img.portrait {
        margin: auto;
        width: auto;
        max-height: 83.4vh;
    }
    .carousel-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
    }
    .carousel-caption h1 {
        font-size: 4vh;
    }
    .carousel-caption p {
        font-size: 3vh;
    }
    .flex-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .showcase .showcase-text {
        padding: 7rem;
    }
    #CompanyInfo {

        margin: auto;

    }
    .firma-info {
        font-size: 1.8rem;
    }
    #Reklama {

        font-size: 1.3rem;
    }
    .scroll-container {
        overflow: hidden;
        white-space: nowrap;
        width: 100%;
        padding-top: 15px;
        position: relative;
    }

    .scroll-content {
        display: inline-block;
        animation: scroll-left 50s linear infinite;
    }

    .scroll-item {
        display: inline-block;
        margin-right: 50px;

    }

    @keyframes scroll-left {
        0% {
            transform: translateX(100%);
        }
        100% {
            transform: translateX(-100%);
        }
    }
    .visina {
        max-height: 300px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .visina img,
    .visina video {
        max-height: 100%;
        height: auto;
        width: auto;
        object-fit: contain;
        display: block;
    }
}
/*end min-width 992px*/
/* ----------------------------------------------------min width 1200px - xl */
@media (min-width: 1200px) {
    #Logo, #Qrcode {
        max-width: 200px;
        max-height: 250px;
    }
    /* SAT */
    .flip {
        position: relative;
        /*font-weight: bold;*/
        width: 100%;
        height: 6.2rem;
        margin-right: 1px;
        font-size: 4rem;
        line-height: 6.2rem;
        text-align: center;
        border-radius: 10px;

    }

    .divider {
        font-size: 2.5rem;
        line-height: 5.5rem;
        font-style: normal;
    }
    #dan, #mesec{
        font-size: 1.3rem;
    }
    #datum {
        font-size: 4rem;
    }
    #qrkod {
        font-size: 1.5rem;
    }
    #CompanyInfo {

        margin: auto;

    }
    .firma-info {
        font-size: 2rem;
    }
    #Reklama {

        margin: auto;
        font-size: 1.6rem;
    }

}
/* ----------------------------------------------------min width 1400px - xxl */
@media (min-width: 1400px) {
    #Logo, #Qrcode {
        max-width: 200px;
        max-height: 250px;
    }
    /* SAT */
    .flip {
        position: relative;
        /*font-weight: bold;*/
        width: 100%;
        height: 7.8rem;
        margin-right: 2px;
        font-size: 5.1rem;
        line-height: 7.8rem;
        text-align: center;
        border-radius: 10px;

    }

    .divider {
        font-size: 2.5rem;
        line-height: 7.2rem;
        font-style: normal;
    }

    #dan, #mesec{
        font-size: 1.8rem;
    }
    #datum {
        font-size: 5rem;
    }
    #qrkod {
        font-size: 1.6rem;
    }
    #CompanyInfo {
        height: 8.3vh;
        margin: auto;

    }
    .firma-info {
        font-size: 1.3rem;
        font-size: 2rem;
    }
    #Reklama {
        height: 8.3vh;
        margin: auto;
        font-size: 1.6rem;
    }
    .visina {
        max-height: 350px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .visina img,
    .visina video {
        max-height: 100%;
        height: auto;
        width: auto;
        object-fit: contain;
        display: block;
    }
}/*end min-width 140px*/
/* Prilagođavanje za ekrane u formatu 9:16 (npr. 1080x1920) */
@media (max-aspect-ratio: 9/16) {
    #Screen {
        flex-direction: column;
    }

    #Sidebar {
        width: 100%;
        max-height: 25vh;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }

    #ElementsContainer {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #Logo, #Clock, #Calendar {
        flex: 1 1 30%;
        text-align: center;
        padding: 5px;
    }

    #MainContent {
        width: 100%;
        padding: 0;
    }

    #Information {
        flex-direction: column;
    }

    #CompanyInfo,
    #Gallery,
    #Reklama {
        width: 100%;
        margin-bottom: 10px;
    }

    .carousel-item {
        height: 60vh;
    }

    .scroll-container {
        max-height: 15vh;
        overflow: auto;
    }

    .firma-info {
        flex-direction: column;
        gap: 5px;
    }

    #NazivFirme,
    #PonudaFirme {
        padding: 10px;
        font-size: 1.2rem;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

