html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6; /* Açık gri arka plan */
    color: #343a40; /* Koyu gri metin rengi */
    font-size: 15px;
    display: flex; /* Flexbox ile dikey düzen */
    flex-direction: column; /* Öğeleri sütun halinde sırala */
}

/* Konteyner Stili */
.container {
    width: 95%; /* Genişliği %95 yap */
    max-width: 1200px; /* Maksimum genişliği biraz daha artırarak daha modern bir görünüm */
    margin: 40px auto; /* Üstten ve alttan boşluk, yatayda ortala */
    padding: 30px; /* İç boşluğu artır */
    background-color: #ffffff; /* Beyaz arka plan */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Daha belirgin ve yumuşak gölge */
    border-radius: 12px; /* Köşeleri yuvarla */
    flex-grow: 1; /* Ana içeriğin mevcut alanı doldurmasını sağlar, footer'ı aşağı iter */
}

/* Header Stilleri */
.main-header {
    display: flex;
    justify-content: center; /* Ana içeriği yatayda ortalar */
    align-items: center;
    padding: 15px 30px;
    background-color: #2c3e50; /* Koyu lacivert */
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    flex-wrap: wrap; /* Küçük ekranlarda elemanların alt satıra geçmesini sağlar */
    height: 95px; /* Header'ın sabit yüksekliği, logoya göre ayarlandı */
    min-height: 95px; /* Minimum yükseklik de aynı */
    position: relative; /* Butonların absolute konumlanması için */
}

/* Orta Kısım - Logo ve Slogan */
.header-center-logo {
    text-align: center; /* Logo ve sloganı ortalar */
    flex-shrink: 0; /* Logolu kısmın küçülmesini engeller */
    padding: 0 20px; /* Kenarlardan biraz boşluk */
    position: absolute; /* Logoyu tam ortalamak için */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Diğer butonlardan önde olmasını sağlar */
}

.header-logo {
    height: 83px; /* Logonun mevcut boyutu */
    display: block; /* Slogan altına geleceği için block eleman yapar */
    margin: 0 auto; /* Logoyu yatayda ortalar */
}

.header-slogan {
    font-size: 1.1em; /* Slogan boyutu */
    font-weight: 400;
    color: #e0e0e0;
    margin-top: 5px; /* Logoyla slogan arasına boşluk */
    white-space: nowrap; /* Slogan tek satırda kalır */
}

/* Soldaki butonlar (Destek olmak için) */
.header-left-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 30px; /* Header padding'i ile aynı */
    top: 50%;
    transform: translateY(-50%);
    z-index: 20; /* Butonların logonun arkasında kalmaması için */
    align-items: center; /* Buton içeriğini dikeyde ortalar */
}

/* Sağdaki butonlar */
.header-right-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 30px; /* Header padding'i ile aynı */
    top: 50%;
    transform: translateY(-50%);
    z-index: 20; /* Butonların logonun arkasında kalmaması için */
    align-items: center; /* Buton içeriğini dikeyde ortalar */
}


.button-link {
    background-color: #007bff; /* Varsayılan mavi */
    color: white;
    padding: 8px 16px; /* Düğme içindeki boşluğu artırdım */
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em; /* Yazı boyutunu biraz büyüttüm */
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Düğme yüksekliğini büyüttüm */
    min-width: 140px; /* Düğme minimum genişliğini büyüttüm */
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.button-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Destek olmak için butonu için özel stil */
.bmc-custom-button {
    background-color: #FF6600; /* data-color */
    color: #000000; /* data-font-color */
    border: 1px solid #000000; /* data-outline-color */
}

.bmc-custom-button:hover {
    background-color: #e65c00; /* Hover rengi (data-color'ın biraz koyusu) */
    color: #000000;
}

.bmc-icon {
    height: 20px; /* İkon boyutunu büyüttüm */
    width: 20px;
    margin-right: 8px; /* Metinle ikon arasına boşluğu artırdım */
}

/* Medya Sorguları (Responsive Tasarım) - Buradaki buton stilini de güncelleyin */
@media (max-width: 992px) {
    /* ... diğer stiller ... */

    
}

/* Başlık Stilleri */
h1 { /* Bu stil sadece dashboard veya admin sayfaları gibi büyük başlıklara uygulanmalı */
    color: #007bff; /* Mavi renk */
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.5em; /* Daha büyük */
    font-weight: 700;
    text-transform: uppercase; /* Başlığı büyük harf yap */
    letter-spacing: 1px;
}

h2 { /* Sayfa başlıkları için (örn: Etkinlik Ekleme Talebi, Öneri/Şikayet) */
    color: #343a40; /* Koyu gri */
    text-align: center; /* Ortaya hizala */
    margin-top: 20px; /* Üstten boşluk */
    margin-bottom: 30px; /* Alttan boşluk */
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef; /* Alt çizgi */
    font-size: 2em; /* Biraz daha büyük */
    font-weight: 600;
}

.header-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ced4da;
}

.header-info p {
    margin: 8px 0;
    font-size: 1.1em;
    color: #555;
}

/* Buton Stilleri */
.button-link {
    background-color: #007BFF;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.support-btn-link {
    background-color: #db9602;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.button-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.submit-button {
    background-color: #28a745;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    width: 100%; /* Tam genişlik */
    text-align: center;
    margin-top: 25px; /* Üstten boşluk */
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.2);
}

.submit-button:hover {
    background-color: #218838;
    transform: translateY(-3px); /* Daha belirgin efekt */
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.action-button { /* requests.html sayfasındaki aksiyon butonları için */
    padding: 8px 15px;
    font-size: 0.85em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin: 0 5px;
    text-decoration: none;
    display: inline-block; /* Yan yana durmaları için */
}

.approve-button {
    background-color: #007bff;
    color: white;
    border: none;
}

.approve-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.disabled-button {
    background-color: #6c757d; /* Gri */
    color: white;
    cursor: not-allowed;
    opacity: 0.7; /* Biraz saydamlık */
    border: none;
    box-shadow: none; /* Gölge olmasın */
}

/* Flash Mesaj Stilleri */
.flashes {
    list-style: none;
    padding: 0; /* padding'i kaldır, li'lere verilecek */
    margin: 20px 0;
    text-align: center;
    font-size: 0.95em;
}

.flashes li {
    margin-bottom: 10px; /* Aralarındaki boşluğu artır */
    padding: 12px 20px; /* İç boşluğu artır */
    border-radius: 8px; /* Daha yumuşak köşeler */
    font-weight: bold;
    border: 1px solid; /* Kenarlık ekle */
    opacity: 0.95; /* Hafif saydamlık */
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.flashes .error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Form Stilleri */
.event-request-form {
    background-color: #ffffff; /* Form arka planı beyaz olsun */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    border: 1px solid #e0e0e0; /* Hafif bir kenarlık */
}

.form-group {
    margin-bottom: 25px; /* Gruplar arası boşluğu artır */
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px; /* Label ile input arası boşluk */
    color: #333;
    font-size: 1.05em; /* Biraz daha büyük label fontu */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px; /* Daha okunaklı font boyutu */
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25); /* Daha belirgin focus efekti */
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.1); /* Checkbox'ı biraz büyüt */
    vertical-align: middle; /* Metinle hizala */
}

.form-group label[for="is_active"] {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
}

/* Tablo Stilleri (requests.html için) */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9em;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.data-table td {
    color: #555;
}

/* Durum Rozetleri */
.status-badge {
    padding: 6px 12px; /* Daha büyük rozet */
    border-radius: 20px; /* Daha yuvarlak */
    font-size: 0.85em;
    font-weight: 600;
    color: white;
    text-transform: capitalize; /* İlk harfi büyük yap */
}

.status-success {
    background-color: #28a745;
}

.status-pending {
    background-color: #ffc107;
    color: #333;
}

/* Yatay Çizgi */
hr {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 40px 0;
}

/* Footer Stili */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50; /* Header ile aynı renk */
    color: #ecf0f1;
    font-size: 0.9em;
    margin-top: 20px; /* İçerikle arasında boşluk */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0; /* Footer için köşe yuvarlatmayı kaldır */
}

/* Loading Overlay Stilleri */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Biraz daha opak */
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    text-align: center;
    font-size: 1.2em;
    color: #343a40;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1.6em; /* Biraz daha büyük */
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
}

.loading-sub-message {
    font-size: 1.1em;
    color: #555;
}

/* Disabled Buton */
.update-button.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none; /* Transform efekti olmasın */
    box-shadow: none;
}

/* Event Grid Stilleri (index.html için) */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Minimum genişlik 300px */
    gap: 25px;
    margin-top: 30px;
}

.event-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Daha belirgin gölge */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-8px); /* Daha belirgin yükselme efekti */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Daha belirgin gölge */
}

.event-image-container {
    width: 100%;
    height: 200px; /* Resim yüksekliğini artır */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9ecef;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 20px; /* İç boşluğu artır */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #007bff;
    font-size: 1.5em; /* Daha büyük başlık */
    font-weight: 700;
    line-height: 1.4;
    min-height: 60px; /* Minimum yükseklik */
}

.event-card p {
    margin: 8px 0; /* Boşlukları artır */
    font-size: 0.95em;
    color: #555;
}

.event-subtitle {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.event-date-status {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px; /* Boşluğu artır */
}

.event-date-status .date-text {
    font-weight: 500;
    color: #343a40;
    margin-right: 8px;
}

.event-date-status .date-value {
    color: #dc3545; /* Kırmızı renk */
    font-weight: bold;
    font-size: 1.1em;
}

.event-status {
    margin-top: auto;
    padding-top: 15px; /* Boşluğu artır */
    border-top: 1px dashed #f0f0f0;
}

/* Link Stili */
.event-link {
    display: block;
    background-color: #007bff;
    color: white;
    padding: 12px 18px; /* Daha büyük buton */
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.event-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.no-link {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    display: block;
    margin-top: 15px;
}

.github-button {
    background-color: #333; /* GitHub'ın varsayılan koyu rengi */
    color: white;
    margin-left: -1px; /* Diğer butonlarla arasını açar */
    display: flex; /* İkon ve metni aynı hizada tutmak için */
    align-items: center; /* Dikeyde ortala */
}

.github-button:hover {
    background-color: #555; /* Hover rengi */
    transform: translateY(-2px);
}

.github-icon {
    height: 18px; /* İkon boyutu */
    width: 18px;
    margin-right: 8px; /* İkon ile metin arasına boşluk */
    filter: brightness(0) invert(1); /* İkon beyaz değilse beyaza çevirir */
}

/* Medya Sorguları (Responsive Tasarım) */
@media (max-width: 992px) {
    .container {
        max-width: 90%;
        margin: 30px auto;
        padding: 25px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .event-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .event-card h3 {
        font-size: 1.4em;
    }
    .main-header {
        /* ... diğer stil kuralları ... */
        height: auto;
        min-height: unset;
        /* ... diğer stil kuralları ... */
    }

    .button-link {
        padding: 5px 10px; /* Daha küçük ekranlar için padding */
        font-size: 0.8em; /* Daha küçük ekranlar için font boyutu */
        height: 30px; /* Daha küçük ekranlar için yükseklik */
        min-width: unset; /* Mobil için minimum genişliği kaldır, esnek olsun */
        flex-grow: 1;
        max-width: 200px; /* Maksimum genişlik verilebilir */
    }

    .bmc-icon {
        height: 15px; /* Mobil ikon boyutu */
        width: 15px;
        margin-right: 4px;
    }
    .github-button {
        margin-left: 0; /* Mobil görünümde sola yasla */
        margin-top: 10px; /* Düğmeler arasında boşluk bırak */
    }
    .github-icon {
        height: 16px;
        width: 16px;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    .header-right {
        margin-top: 10px;
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }
    .button-link {
        padding: 5px 10px; /* Daha küçük ekranlar için padding */
        font-size: 0.8em; /* Daha küçük ekranlar için font boyutu */
        height: 32px; /* Daha küçük ekranlar için yükseklik */
    }
    .bmc-icon {
        height: 16px; /* Daha da küçük ikon */
        width: 16px;
        margin-right: 5px;
    }
    .header-logo {
        height: 50px;
    }
    .container {
        margin: 20px;
        padding: 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
    .form-group label {
        font-size: 1em;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 15px;
    }
    .submit-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .data-table th,
    .data-table td {
        padding: 12px;
        font-size: 0.85em;
    }
    .action-button {
        padding: 6px 10px;
        font-size: 0.8em;
        margin: 5px 0; /* Dikey boşluk */
        display: block; /* Alt alta sırala */
    }
    .status-badge {
        padding: 4px 8px;
        font-size: 0.75em;
    }
    .event-image-container {
        height: 150px;
    }
    .event-card h3 {
        font-size: 1.2em;
        min-height: auto;
    }
    .event-link {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 45px;
    }
    .header-right {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .button-link {
        width: 100%;
        text-align: center;
    }
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.4em;
    }
    .form-group {
        margin-bottom: 20px;
    }
    .data-table {
        font-size: 0.8em;
    }
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}
