/* Webkit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #FFA500;
    border-radius: 10px;
    border: 2px solid #2c2c2c;
}

::-webkit-scrollbar-thumb:hover {
    background: #f9b857;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #FFA500 #2c2c2c;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f1f1;

}
.contact-message {
    font-size: 12px;
    color: #888888; /* siva boja */
    margin-top: 10px;
    font-family: Arial, sans-serif;
    text-align: center;
}
header {
    height: 60px;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    height: 120px;
    margin-right: 20px;
}
.nav-desktop {
    display: flex;
    gap: 30px;
    margin-left: auto;
}
.nav-link {

    color: orange;
    font-weight: bold;
    padding:10px 10px 5px 5px;
    text-decoration: none;

    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ddd;
}
.nav-link.active {
    color: #fff;
    background-color: #FFA500;
    border-radius: 8px;
    padding: 6px 12px;
}
.mobile-menu a.active {
    background-color: #FFA500;
    color: white;
}
/* Hamburger dugme - skriveno na desktopu */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    margin-left: auto;
    cursor: pointer;
}

/* Padajući meni za mobilne uređaje */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #222;
    position: absolute;
    top: 100%;
    right: 30px;
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.mobile-menu a {
    padding: 14px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border-bottom: 1px solid #444;
    text-align: right;
}

.mobile-menu a:hover {
    background-color: #444;
}

/* Responsive ponašanje */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.open {
        display: flex;
    }
}

.admin-main1 {
    margin-top: 80px; /* To make space for the fixed header */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.slider-section.hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.admin-main {
    margin-top: 80px; /* To make space for the fixed header */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.admin-section {
    max-width: 1000px;
    width: 100%;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    justify-content: center;
    margin-top: 100px;
}

.dashboard-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-item:hover {
    transform: translateY(-5px);
}

.dashboard-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.dashboard-item p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    background-color: #FFA500;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #fd9948;
}


footer {

    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    margin: 0;
    z-index: 1000;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
}

.footer-section {
    flex: 1 1 300px;
    margin: 7px;
}

.footer-section h3 {
    font-size: 20px;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.6;
}

.footer-copyright {
    background-color: #222;
    padding: 5px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    text-align: center;
}

.social-icons img {
    width: 30px;
    height: 30px;
    filter: invert(100%);
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}
.admin-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.photo-entry {
    background: #fff;
    padding: 15px;
    border: 2px solid #FFA500;
    border-radius: 8px;
    margin-bottom: 15px;
}

.photo-entry input[type="file"],
.photo-entry input[type="number"],
.photo-entry select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#userInfo input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #FFA500;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    margin: 5px 0;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #e89500;
}

#formStatus {
    margin-top: 15px;
    font-weight: bold;
    color: green;
}
.photo-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: 2px solid #FFA500;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 20px;
}

.photo-left {
    flex: 1 1 200px;
}

.photo-left input[type="file"] {
    display: block;
    margin-top: 8px;
}

.photo-right {
    flex: 2 1 300px;
}

.photo-right label {
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.photo-right input,
.photo-right select {
    width: 100%;
    padding: 8px;
    margin-top: 3px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.cena-prikaz {
    font-size: 16px;
    font-weight: bold;
    color: green;
}
.photo-card {
    display: flex;
    gap: 30px;

    padding: 25px;
    border-radius: 16px;
    margin: 30px auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    transition: transform 0.2s ease;
}

.preview-image {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #ffa500;

}
.preview-image:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}
.photo-card::before {
    content: attr(data-index);
    position: absolute;
    top: -15px;
    left: -15px;
    background: #ffa500;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}
.photo-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    border: 2px solid #ffa500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


.photo-info {
    flex: 1 1 350px; /* Umesto 400px */
}

.photo-info label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 10px;
    font-size: 15px;
    color: #333;
}

.photo-info input,
.photo-info select {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.cena-box {
    margin-top: 20px;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: #000; /* crna boja za "Ukupna cena" */
}

.cena-vrednost {
    color: #FFA500; /* narandžasta za iznos */
    font-weight: bold;
}
.photo-card:hover {
     transform: scale(1.01);
 }


#summaryWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
}

.photo-preview {

    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    position: relative;
    min-height: 260px;
    flex: 1 1 280px;
    text-align: center;

}

.upload-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ffa500;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    color: #555;
    cursor: pointer;
    min-height: 400px;
    background-color: #fdfdfd;
}


.upload-box:hover {
    border-color: #FFA500;
    color: #FFA500;
}

.preview-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    border: 2px solid #ffa500;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}
    .upload-placeholder {
        border: 2px dashed #aaa;
        border-radius: 14px;
        padding: 60px 20px;
        font-size: 16px;
        color: #777;
        cursor: pointer;
        transition: 0.3s ease;
    }

    .upload-placeholder:hover {
        border-color: #ffa500;
        color: #ffa500;
    }
.photo-info {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-top: 10px;
}

.photo-info label {
    font-size: 16px;
    font-weight: bold;
    color: #444;
    margin-top: 10px;
    margin-bottom: 4px;
}


.ph.photo-info input,
.photo-info select {
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #bbb;
    background-color: #fff;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.cena-box {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    margin-top: 20px;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}


.summary-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    align-items: center;
    max-width: 800px;

}

.summary-card:hover {
    transform: scale(1.01);
}

.summary-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #ffa500;
    object-fit: contain;
}

.summary-info {
    flex: 1;
}

.summary-info p {
    margin: 10px 0;
    font-size: 17px;
    color: #333;
    line-height: 1.5;
}

.summary-info p strong {
    color: #ffa500;
}

.user-info-form {
    background: #fff;
    padding: 25px 30px;
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.user-info-form h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #444;
}

.user-info-form input {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.user-info-form button {
    background-color: #ffa500;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-info-form button:hover {
    background-color: #e69100;
}

.ukupna-cena {
    margin-top: 30px;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    color: #222;
}
@media (max-width: 768px) {
    .photo-card {

        align-items: center;
        text-align: center;
        padding-left: 5px;
    }

    .photo-preview {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 250px;
    }

    .photo-info {
        width: 100%;
        padding: 20px 10px;
        box-sizing: border-box;
    }

    .photo-info label {
        text-align: left;
        display: block;
        margin-left: 5px;
    }

    .photo-info input,
    .photo-info select {
        width: 100%;
        margin: 8px 0;
        padding: 10px;
        font-size: 16px;
    }

    .cena-box {
        font-size: 17px;
        margin-top: 15px;
    }

    .btn-delete {
        margin-top: 10px;
        background-color: #dc3545;
    }

    .btn-delete:hover {
        background-color: #bb2d3b;
    }
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease-in-out;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}

.modal-content .checkmark {
    font-size: 48px;
    color: green;
    margin-bottom: 10px;
    animation: popIn 0.5s ease;
}

.modal-content .order-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
 .intro-section {
     text-align: center;
     padding: 50px 20px;
     background-color: #f9f9f9;
     border-radius: 12px;
     margin-bottom: 30px;
 }
.intro-img {
    max-width: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.start-button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.start-button:hover {
    background-color: #0056b3;
}
#multiPhotoForm {
    display: none;
}

.intro-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.intro-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .intro-img {
        max-width: 80%;
        margin-bottom: 20px;
    }

    .intro-section h1 {
        font-size: 24px;
    }

    .intro-section p {
        font-size: 16px;
    }

    .start-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 80px; /* fiksni header visina */
    overflow: hidden;
    box-sizing: border-box;
    display: block; /* početno */
    transition: all 0.5s ease;
}
.hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.slider-section.hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}
.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.slider-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-wrapper img.active {
    opacity: 1;
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.slider-text h1 {
    font-size: 38px;
    color: #fff;
    margin-bottom: 15px;
}

.slider-text p {
    font-size: 20px;
    color: #ddd;
    margin-bottom: 25px;
}

.slider-text .start-button {
    padding: 14px 30px;
    font-size: 18px;
    background-color: #ffa500;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-text .start-button:hover {
    background-color: #e28e00;
}

@media (max-width: 768px) {
    .slider-text h1 {
        font-size: 26px;
    }

    .slider-text p {
        font-size: 16px;
    }

    .slider-text .start-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

#preloader-logo {
    width: 200px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
#loading-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.add-photo-btn {
    background-color: #007bff;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-photo-btn:hover {
    background-color: #0056b3;
}
