* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.giris-sayfasi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giris-kutusu {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.logo h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.form-grubu {
    margin-bottom: 20px;
}

.form-grubu label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-grubu input,
.form-grubu select,
.form-grubu textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-grubu input:focus,
.form-grubu select:focus,
.form-grubu textarea:focus {
    outline: none;
    border-color: #667eea;
}

.giris-butonu {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.giris-butonu:hover {
    transform: translateY(-2px);
}

.admin-header {
    background: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-sol {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #f0f0f0;
}

.site-basligi {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.kullanici-menu {
    position: relative;
}

.kullanici-adi {
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.kullanici-adi:hover {
    background-color: #f0f0f0;
}

.kullanici-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    display: none;
}

.kullanici-menu:hover .kullanici-dropdown {
    display: block;
}

.kullanici-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.kullanici-dropdown a:hover {
    background-color: #f8f9fa;
}

.admin-icerik {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-liste {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.aktif {
    background-color: #667eea;
    color: white;
}

.nav-ikon {
    margin-right: 12px;
    font-size: 18px;
}

.nav-metin {
    font-weight: 500;
}

.ana-icerik {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    transition: margin-left 0.3s ease;
}

.sayfa-basligi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.sayfa-basligi h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.sayfa-basligi p {
    color: #666;
    margin-top: 5px;
}

.istatistik-kartlari {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.istatistik-karti {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.istatistik-karti:hover {
    transform: translateY(-5px);
}

.istatistik-ikon {
    font-size: 40px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
}

.istatistik-bilgi h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.istatistik-bilgi p {
    color: #666;
    font-weight: 500;
}

.son-aktiviteler {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.son-aktiviteler h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.mesaj-listesi {
    list-style: none;
}

.mesaj-ozeti {
    padding: 15px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.mesaj-listesi .mesaj-ozeti:last-child {
    border-bottom: none;
}

.mesaj-ozeti:hover {
    background-color: #f8f9fa;
}

.mesaj-ozeti.okunmamis {
    border-left: 4px solid #667eea;
    background-color: #f0f4ff;
}

.mesaj-bilgi strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.mesaj-konu {
    color: #666;
    font-size: 14px;
}

.mesaj-tarih {
    color: #999;
    font-size: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-birincil {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-birincil:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-ikincil {
    background: #6c757d;
    color: white;
}

.btn-ikincil:hover {
    background: #5a6268;
}

.btn-tehlike {
    background: #dc3545;
    color: white;
}

.btn-tehlike:hover {
    background: #c82333;
}

.btn-kucuk {
    padding: 6px 12px;
    font-size: 12px;
}

.admin-tablo {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-tablo th,
.admin-tablo td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: middle; 
}

.admin-tablo th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-tablo tr:hover {
    background-color: #f8f9fa;
}

.tablo-resim {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.durum-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.durum-badge.aktif {
    background: #d4edda;
    color: #155724;
}

.durum-badge.pasif {
    background: #f8d7da;
    color: #721c24;
}

.islem-butonlari {
    display: flex;
    gap: 5px;
    align-items: center; 
}

.islem-butonlari form {
    margin: 0;
    padding: 0;
    line-height: 1; /* Formun fazladan y羹kseklik eklemesini engeller */
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-form {
    max-width: 100%;
}

.form-butonlar {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.checkbox-grubu {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.hata-mesaj {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.basari-mesaj {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.tablo-wrapper {
    overflow-x: auto;
}

.menu-bolumler {
    display: grid;
    gap: 30px;
}

.menu-bolumu h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

/* Site Ayarlar覺 TAB Yap覺s覺 */
.tab-container {
    width: 100%;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 25px;
}

.tab-nav-link {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.tab-nav-link:hover {
    color: #333;
}

.tab-nav-link.aktif {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.aktif {
    display: block;
}

.site-ayar-resim {
    max-width: 200px;
    max-height: 80px;
    border: 1px solid #e1e5e9;
    padding: 5px;
    border-radius: 5px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.acik {
        transform: translateX(0);
    }
    
    .ana-icerik {
        margin-left: 0;
        padding: 20px;
    }

    .istatistik-kartlari {
        grid-template-columns: 1fr;
    }
    
    .sayfa-basligi {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-butonlar {
        flex-direction: column;
    }
    
    .islem-butonlari {
        flex-direction: column;
    }

    .tab-nav {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================= */
/* ==   HEADER SİTEYİ GÖRÜNTÜLE BUTONU        == */
/* ============================================= */

.header-sag {
    display: flex;
    align-items: center;
    gap: 15px; /* Buton ve kullanıcı menüsü arasına boşluk ekler */
}

.btn-site-goruntule {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f3f5;
    color: #343a40;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-site-goruntule:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.btn-site-goruntule .nav-ikon {
    margin-right: 0;
}