/* Globalni stilovi za stranicu */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #4A90E2;
    font-size: 2rem;
    margin: 20px 0;
}

.container {
    width: 90%;
    max-width: 1000px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Mreža za prikaz slika */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-item img:hover {
    transform: scale(1.05);
}

/* Stil za prikaz broja pregleda */
.views {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
    text-align: center;
}

/* Dugme za brisanje */
.delete-link {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s;
}

.delete-link:hover {
    background-color: #c0392b;
}

/* Lightbox stilovi za prikaz uvećane slike */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.8);
}

/* Opšte stilizovanje */
p {
    color: #666;
    font-size: 1rem;
}

