body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: center;
    line-height: 1.6;

    /* Dinamik arkaplan resmi için stiller */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

header {
    margin-bottom: 40px;
    /* background-color EJS dosyasında inline olarak veriliyor */
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

h1 {
    color: #4a4a4a;
    font-weight: 300;
    font-size: 2.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    /* background-color EJS dosyasında inline olarak veriliyor */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

.upload-section, .gallery-section {
    margin-bottom: 20px;
}

h2 {
    font-weight: 400;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

input[type="text"], input[type="file"], input[type="password"], input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="range"] {
    padding: 0;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: inline-block;
}

button:hover {
    background-color: #0056b3;
}

#upload-status {
    margin-top: 15px;
    font-weight: bold;
    min-height: 1.2em;
}

.progress-container {
    display: none;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

#progress-bar {
    width: 80%;
    height: 20px;
    vertical-align: middle;
}

#progress-text {
    margin-left: 10px;
    font-weight: bold;
    vertical-align: middle;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    text-align: center;
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

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

.photo-item .nickname {
    margin-top: 10px;
    font-weight: 500;
    color: #555;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

#modal-content-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

#modal-content-container.fading {
    opacity: 0;
}

#modal-content-container img, #modal-content-container video {
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1002;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
}

.nav-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 1001;
}

.nav-btn.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.nav-btn.prev {
    left: 0;
}

.nav-btn:hover {
    background-color: rgba(0,0,0,0.8);
}