/* Algemene pagina layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #333;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
}

nav a.active, nav a:hover {
    background-color: #575757;
}

/* Container voor upload/inlog (gecentreerd) */
.container.boxed {
    padding: 20px;
    max-width: 600px;
    margin: 10vh auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
}

/* Container voor brede weergave zoals galerij */
.container.fullwidth {
    max-width: 100%;
    padding: 20px;
    margin: auto;
}

h1 {
    text-align: center;
    color: #333;
}

/* Galerij */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
}

.photo:hover {
    transform: scale(1.05);
}

.total-photos {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 2em;
    border: none;
    background-color: rgba(0,0,0,0.3);
    user-select: none;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.6);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Upload preview container */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Upload item layout */
.upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Mini thumbnail */
.upload-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Progressbar en status */
.upload-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}

/* Status text (percentage of "wachten") */
.upload-status-text {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

/* Status kleuren */
.progress-bar.waiting .progress-bar-fill {
    background-color: #ffa500;
    animation: pulse 1.5s infinite;
}

.progress-bar.uploading .progress-bar-fill {
    background-color: #007bff;
}

.progress-bar.uploaded .progress-bar-fill {
    background-color: #28a745;
}

.progress-bar.failed .progress-bar-fill {
    background-color: #dc3545;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.upload-success {
    background-color: #28a745;
    color: white;
    padding: 12px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
}

.success-message {
    margin-top: 20px;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-weight: bold;
}

.error-message {
    margin-top: 20px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    font-weight: bold;
}

/* Thumbnails consistent */
.photo img,
.photo .video-placeholder {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Mobile thumbnails kleiner */
@media (max-width: 600px) {
    .photo img,
    .photo .video-placeholder {
        width: 140px;
        height: 140px;
    }
}

/* Verwerken status */
.video-placeholder {
    background: #eee;
    display: block;
    margin: 0 auto;
}

.processing-text {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 2;
}

/* Video icoon */
.video-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: url('img/video-icon.svg') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 2px white);
    opacity: 1;
    z-index: 2;
}

/* Bestandsknop mooier */
input[type="file"] {
    padding: 12px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.3s ease;
}

input[type="file"]:hover {
    background: #eee;
}

/* Upload knop */
button {
    background-color: #d47e9c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #c56788;
}


