/* Genel Sıfırlamalar ve Temel Stiller */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #f4f4f4; /* Admin paneli için varsayılan arkaplan */
}

/* --- Ana Sayfa (index.html) Stilleri --- */
body#main-page {
    overflow: hidden; /* Kaydırma çubuklarını gizle */
    background-color: #000; /* GIF yüklenene kadar siyah arka plan */
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Tüm ekranı kapla */
    background-position: center center; /* Ortala */
    background-repeat: no-repeat;
    z-index: 1; /* Arka planda */
    transition: background-image 0.5s ease-in-out; /* Geçiş efekti */
}

#instant-gif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* İçeriği bozmadan sığdır */
    background-position: center center; /* Ortala */
    background-repeat: no-repeat;
    z-index: 10; /* En üstte */
    display: none; /* Başlangıçta gizli */
    background-color: rgba(0, 0, 0, 0.5); /* İsteğe bağlı: Anlık GIF arkasına hafif karartma */
}

/* --- Yönetici Paneli (admin.html) Stilleri --- */
.admin-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="file"],
.form-group input[type="number"],
.form-group input[type="text"] /* URL girişi eklenirse */
{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Padding içeri dahil */
}

.form-group input[type="number"] {
     width: 100px; /* Sayı alanları daha dar olabilir */
}


.preview-area {
    margin-top: 10px;
    max-width: 200px; /* Önizleme boyutu */
    max-height: 150px;
    border: 1px dashed #ccc;
    min-height: 50px; /* Dosya seçilmeyince alan görünsün */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Taşan kısımları gizle */
}

.preview-area img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

button#save-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button#save-button:hover {
    background-color: #0056b3;
}

#status-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.success {
    color: green;
}

.error {
    color: red;
}