body {
    font-family: Inter, ui-sans-serif, system-ui;
    background: linear-gradient(180deg,#f7f8fa,#eef2f5);
    margin: 0;
    padding: 28px;
    color: #222;
}

h1 {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 600;
}

/* Moderne Select & Inputs */
select, input[type="file"], input[type="password"] {
    appearance: none;
    padding: 10px 15px;
    font-size: 0.98rem;
    border: 2px solid #e0e6ea;
    border-radius: 12px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><polygon points="0,0 12,0 6,6" fill="%23999"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

select:focus, input[type="file"]:focus, input[type="password"]:focus {
    border-color: #4caf50;
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.12);
}

select:hover, input[type="file"]:hover, input[type="password"]:hover {
    border-color: #cfead9;
}

.form-group {
    margin: 0 auto 14px;
    max-width: 420px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334;
}

button {
    padding: 10px 14px;
    font-size: 0.98rem;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #2ea44f;
    color: white;
    transition: background 0.18s ease, transform 0.06s ease;
}

button:hover { background-color: #24943f; }
button:active { transform: translateY(1px); }

/* Masonry Layout */
.masonry {
    column-count: 4;
    column-gap: 16px;
    max-width: 1200px;
    margin: 18px auto;
}
@media (max-width: 1200px) { .masonry { column-count: 3; } }
@media (max-width: 900px)  { .masonry { column-count: 2; } }
@media (max-width: 480px)  { .masonry { column-count: 1; } }

.masonry-item { break-inside: avoid; margin-bottom: 16px; }
.masonry-item img { width: 100%; display: block; border-radius: 12px; box-shadow: 0 8px 22px rgba(25,30,40,0.06); cursor: pointer; opacity: 0; transition: opacity 0.6s ease, transform 0.18s ease; }
.masonry-item img:hover { transform: translateY(-4px) scale(1.01); }

/* Progress Bar */
.progress-wrapper {
    width: 100%;
    max-width: 420px;
    height: 14px;
    background: #e6eef0;
    border-radius: 999px;
    margin: 12px 0 0;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,#34d399,#10b981);
    border-radius: 999px;
    transition: width 0.18s linear;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7,11,15,0.78);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1200;
    padding: 24px;
}
.lightbox img {
    max-width: 92%;
    max-height: 86%;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(3,7,18,0.6);
    transition: transform 0.2s ease;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    font-size: 1.6rem;
    padding: 12px;
    cursor: pointer;
    border-radius: 999px;
    z-index: 1250;
    user-select: none;
    transition: background 0.18s ease, transform 0.06s ease;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,0,0,0.65); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
@media (max-width: 600px) { .lightbox-prev, .lightbox-next { font-size: 1.2rem; padding: 8px; left: 12px; right: 12px; } }
