.photo-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.photo-page {
    width: 435px;
    height: 220px;
    border: 2px solid #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    background: #f8f8f8;
}

.btn-danger {
    margin-top: 10px; /* Razmak između stranice i dugmeta */
    width: 10%; /* Dugme zauzima celu širinu */
    max-width: 435px; /* Maksimalna širina dugmeta */
    background-color: #dc3545; /* Crvena boja */
    color: white; /* Bela boja teksta */
    border: none; /* Ukloni granicu */
    padding: 8px 16px; /* Dodaj padding */
    border-radius: 4px; /* Zaobljeni uglovi */
    cursor: pointer; /* Pokazivač miša */
}

.btn-danger:hover {
    background-color: #c82333; /* Tamnija crvena boja na hover */
}


.photo-spot {
    border: 1px dashed #666;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.photo-spot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.crop-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    border-radius: 5px;
}
.spot-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

.vertical-spot { width: 30%; height: 90%; }
.small-square { width: 95px; height: 95px; }
.large-spot { width: 45%; height: 90%; }
.horizontal-spot { width: 90%; height: 60%; }
/* Stilovi za cropper modal */
.cropperModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}


.Modal-content {
    width: 60%; /* Smanjuje širinu */
    max-width: 300px; /* Manja maksimalna širina */
    padding: 10px;
}

.Modal-content img {
    max-width: 80%; /* Smanjuje sliku unutar croppera */
    max-height: 200px;
}


.crop-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    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); }
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #0056b3;
}

#imageUploader {
    display: none;
	
	.is-invalid {
    border-color: #dc3545 !important;

}
   /* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 50%;
    height: 50%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.Modal-content {
    width: 10%; /* Smanji širinu modala */
    max-width: 20px; /* Ograniči maksimalnu širinu */
    padding: 10px;
}

.Modal-content img {
    max-width: 10%;
    max-height: 20px;
    display: block;
    margin: 0 auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Gallery grid styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.gallery-item img:hover {
    border-color: #3498db;
}
/* Mobile styles */
@media (max-width: 757px) {
    .gallery-item img {
        width: 50%; /* Reduce image size by 50% */
        height: auto; /* Maintain aspect ratio auto */
    }
}
/* Stil za plutajuce dugme */
.floating-continue-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 12px 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: none; /* Pocetno sakriveno */
}

.floating-continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Responsive prilagodbe */
@media (max-width: 768px) {
    .floating-continue-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}