/* TİF & Diyanet İzci Yönetim Sistemi Tasarım Dosyası
    Renkler: İzcilik doğasına uygun yeşil, kahverengi ve resmiyet için gri/mavi tonları.
*/

:root {
    --ana-renk: #2c3e50;
    /* Koyu Lacivert (Resmiyet) */
    --vurgu-renk: #27ae60;
    /* İzcilik Yeşili */
    --vurgu-hover: #219150;
    --arka-plan: #f4f6f9;
    /* Açık Gri */
    --beyaz: #ffffff;
    --hata: #e74c3c;
    --uyari: #f39c12;
    --metin: #333333;
    --kenarlik: #ddd;
    --sidebar-genislik: 250px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--arka-plan);
    color: var(--metin);
    line-height: 1.6;
    font-size: 15px;
}

/* --- Genel Form Elemanları --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
/* YENİ: Faaliyet tarihleri için */
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--kenarlik);
    border-radius: 4px;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ana-renk);
    outline: none;
}

button,
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--ana-renk);
    color: var(--beyaz);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}

button:hover,
.btn:hover {
    background-color: #1a252f;
}

.btn-yesil {
    background-color: var(--vurgu-renk);
}

.btn-yesil:hover {
    background-color: var(--vurgu-hover);
}

.btn-kirmizi {
    background-color: var(--hata);
}

.btn-kirmizi:hover {
    background-color: #c0392b;
}

.btn-sari {
    background-color: var(--uyari);
    color: #fff;
}

.btn-sari:hover {
    background-color: #d68910;
}

.btn-gri {
    background-color: #95a5a6;
    color: #fff;
}

/* YENİ */
.btn-gri:hover {
    background-color: #7f8c8d;
}

.btn-kucuk {
    padding: 5px 10px;
    font-size: 12px;
}

/* --- Giriş ve Kayıt Sayfası --- */
.login-container {
    max-width: 500px;
    /* Kayıt formu biraz geniş olabilir */
    margin: 50px auto;
    background: var(--beyaz);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--vurgu-renk);
    padding-bottom: 10px;
}

.login-header h2 {
    color: var(--ana-renk);
}

.login-header p {
    font-size: 13px;
    color: #666;
}

.form-grup {
    margin-bottom: 15px;
}

.form-grup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.zorunlu {
    color: red;
    margin-left: 3px;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-error {
    background-color: #fce4e4;
    color: var(--hata);
    border: 1px solid #fcc2c3;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* --- Yönetim Paneli Düzeni (Dashboard) --- */
.panel-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Sol Menü) */
.sidebar {
    width: var(--sidebar-genislik);
    background-color: var(--ana-renk);
    color: var(--beyaz);
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
    /* Mobilde üstte kalması için eklendi */
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.aktif {
    background-color: var(--vurgu-renk);
    color: var(--beyaz);
    padding-left: 25px;
    /* Hover efekti */
}

/* Ana İçerik Alanı */
.main-content {
    margin-left: var(--sidebar-genislik);
    flex: 1;
    padding: 20px;
    width: calc(100% - var(--sidebar-genislik));
    transition: margin-left 0.3s;
    /* Mobil menü animasyonu için */
}

.top-bar {
    background: var(--beyaz);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 20px;
    color: var(--ana-renk);
    font-weight: bold;
}

.user-info {
    font-size: 14px;
}

/* --- Kartlar ve İstatistikler --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--beyaz);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--vurgu-renk);
}

.stat-card h3 {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.stat-card .sayi {
    font-size: 24px;
    font-weight: bold;
    color: var(--ana-renk);
}

/* --- Tablolar --- */
.table-responsive {
    overflow-x: auto;
    background: var(--beyaz);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Mobilde tablo çok sıkışmasın */
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f8f9fa;
    color: var(--ana-renk);
    font-weight: 600;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Filtreleme Alanı */
.filtre-alani {
    background: var(--beyaz);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filtre-item {
    flex: 1;
    min-width: 150px;
}

.filtre-item label {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.filtre-item input,
.filtre-item select {
    margin-bottom: 0;
}

/* Profil Resmi Uyarısı */
.foto-uyari {
    font-size: 12px;
    color: var(--uyari);
    background: #fff3cd;
    padding: 5px;
    margin-top: 5px;
    border-radius: 3px;
    display: inline-block;
}

/* --- Mobil Uyumluluk (ESKİ) KODLARI KALDIRILDI --- */
/* Yeni mobil uyumluluk ayarları sayfanın alt kısmında mevcuttur. */

/* --- Yeni Eklenen Stiller (Güncelleme Talebi) --- */

/* Tablo Başlıklarında Sıralama Linkleri - RENK DÜZELTMESİ */
table th a.sort-link,
table th a.sort-link:visited,
table th a.sort-link:active,
table th a.sort-link:hover {
    color: var(--ana-renk) !important;
    /* Standart link rengi yerine başlık rengini zorla */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

table th a.sort-link:hover {
    opacity: 0.7;
    /* Sadece hoverda hafif soluklaşsın */
}

table th i.fa-sort,
table th i.fa-sort-up,
table th i.fa-sort-down {
    font-size: 12px;
    margin-left: 5px;
    color: #999;
}

table th i.fa-sort-up,
table th i.fa-sort-down {
    color: var(--vurgu-renk);
}

/* Detaylı Filtreleme Alanı (Checkbox Grupları) */
.filtre-kapsayici {
    background: var(--beyaz);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filtre-baslik {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--ana-renk);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /* Masaüstünde de tıklanabilir olsun */
}

.filtre-grid {
    display: none;
    /* VARSAYILAN OLARAK GİZLİ (Hem Mobil Hem Masaüstü) */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 15px;
}

.filtre-grup h4 {
    font-size: 13px;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

/* YENİ: Filtre içi küçük arama kutusu */
.filtre-arama-input {
    width: 100%;
    padding: 5px 8px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    background-color: #fff;
}

.checkbox-listesi {
    max-height: 150px;
    /* Biraz yükseltildi */
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 8px;
    border-radius: 4px;
    background: #fcfcfc;
}

.checkbox-oge {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
    cursor: pointer;
    color: #444;
}

.checkbox-oge input {
    width: auto;
    margin: 0 8px 0 0;
    cursor: pointer;
}

.checkbox-oge:last-child {
    margin-bottom: 0;
}

/* Salt Okunur (Readonly/Disabled) Alanlar */
input[readonly],
input[disabled],
select[disabled],
textarea[disabled] {
    background-color: #f8f9fa;
    /* Daha açık gri */
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e9ecef;
}

/* Profil/İzci Resim Önizleme */
.profil-onizleme-kapsayici {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.profil-onizleme {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--vurgu-renk);
    background-color: #fff;
}

/* ==========================================================================
   MOBİL DÖNÜŞÜM İÇİN EKLENEN YENİ STİLLER (Responsive Mobile-First)
   ========================================================================== */

/* Varsayılan olarak mobil elementleri masaüstünde gizle */
.mobil-goster {
    display: none !important;
}

.masaustu-gizle {
    display: none !important;
}

/* FAB (Floating Action Button) - Mobilde Sağ Altta Sabit Ekle Butonu */
.fab-btn {
    display: none;
    /* Varsayılan gizli, mobilde açılacak */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--vurgu-renk);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 56px;
    font-size: 24px;
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s;
}

.fab-btn:active {
    transform: scale(0.95);
}

/* MOBİL GÖRÜNÜM KIRILMA NOKTASI */
@media (max-width: 768px) {

    /* 1. GİZLEME / GÖSTERME MANTIĞI */
    .mobil-gizle {
        display: none !important;
    }

    .masaustu-gizle {
        display: block !important;
    }

    .mobil-goster {
        display: block !important;
    }

    /* 2. SIDEBAR (MOBİL MENÜ) DÖNÜŞÜMÜ */
    /* Eski sidebar stilini eziyoruz */
    .sidebar {
        position: fixed;
        left: -260px;
        /* Ekran dışına itiyoruz */
        top: 0;
        width: 250px;
        height: 100%;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar.aktif {
        left: 0;
        /* JS ile .aktif klası eklenince açılacak */
    }

    /* Menü açıldığında arkaplanı karartmak için overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.aktif {
        display: block;
    }

    /* 3. ANA İÇERİK ve HEADER AYARLARI */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 10px;
        /* Mobilde kenar boşluğunu azalttık */
    }

    .panel-wrapper {
        flex-direction: column;
        /* Yan yana değil alt alta */
    }

    /* Mobil Header (Hamburger Menü İçin) */
    .top-bar {
        display: flex;
        flex-direction: row;
        /* Mobilde de yan yana olsun */
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        position: sticky;
        top: 0;
        z-index: 900;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }

    .mobil-menu-btn {
        font-size: 24px;
        color: var(--ana-renk);
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    /* 4. KART GÖRÜNÜMÜ (Listeler İçin) */
    .mobil-liste-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobil-kart {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 15px;
        position: relative;
        overflow: hidden;
        border-left: 4px solid var(--kenarlik);
        /* Varsayılan gri kenar */
    }

    /* Duruma göre kenar rengi */
    .mobil-kart.aktif {
        border-left-color: var(--vurgu-renk);
    }

    .mobil-kart.pasif {
        border-left-color: var(--hata);
    }

    .mobil-kart.beklemede {
        border-left-color: var(--uyari);
    }

    .mk-baslik {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .mk-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 15px;
        border: 2px solid #eee;
    }

    .mk-bilgi h4 {
        margin: 0;
        font-size: 16px;
        color: var(--ana-renk);
    }

    .mk-bilgi small {
        color: #777;
        font-size: 13px;
    }

    .mk-detaylar {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 5px;
        font-size: 13px;
        color: #555;
        margin-bottom: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* İki kolonlu detay */
        gap: 5px;
    }

    .mk-islemler {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }

    .mk-islemler .btn {
        flex: 1;
        /* Butonlar eşit yayılsın */
        padding: 12px;
        /* Dokunma alanı geniş */
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    /* 5. FORM ELEMANLARI (Tam Genişlik) */
    input,
    select,
    textarea {
        font-size: 16px;
        /* Mobilde okunabilirlik için */
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        /* Tek kolon */
        gap: 15px;
    }

    /* 6. FİLTRELEME (Akordiyon) */
    .filtre-grid {
        grid-template-columns: 1fr !important;
    }

    .filtre-kapsayici {
        padding: 10px;
    }

    .filtre-baslik {
        cursor: pointer;
        background: #f1f2f6;
        padding: 10px;
        border-radius: 5px;
        margin: 0;
        /* Başlık ile içerik arasını kapattık */
    }

    /* Filtre içeriğini JS ile açacağız, ancak varsayılan gizli */
    .filtre-icerik {
        display: none;
        padding-top: 15px;
    }

    /* 7. FAB BUTON GÖSTERİMİ */
    .fab-btn {
        display: block;
    }

    /* Başlık Alanı Düzenleme */
    .page-title {
        font-size: 18px;
    }

    /* Select2 Düzeltmesi */
    .select2-container {
        width: 100% !important;
    }

    /* Eski filtreleme sisteminin mobil uyumu */
    .filtre-alani {
        flex-direction: column;
    }

    .filtre-item {
        width: 100%;
    }
}

/* ==========================================================================
   YENİ EKLENEN ÖZELLİKLER (FAALİYETLER VE BİLDİRİMLER)
   ========================================================================== */

/* YENİ: Bildirim Animasyonu (Pulse Efekti) */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(231, 76, 60, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* 1. Bildirim İkonu (Header İçin) */
.bildirim-alan {
    position: relative;
    margin-right: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    /* Pozisyonlama hatasını önler */
}

.bildirim-ikon {
    font-size: 20px;
    color: #555;
}

.bildirim-sayi {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--hata);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    border: 2px solid #fff;
    /* Beyaz çerçeve ile daha temiz görünüm */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: pulse-badge 2s infinite;
    /* Dikkat çekici animasyon */
}

/* YENİ: Sidebar Badge (Sol Menü İçin) */
.sidebar-badge {
    background-color: var(--hata);
    color: white;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    /* Hap şeklinde */
    float: right;
    /* Sağa yasla */
    margin-top: 2px;
    font-weight: bold;
    animation: pulse-badge 2s infinite;
    line-height: normal;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 2. Faaliyet Kartları */
.faaliyet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .faaliyet-grid {
        grid-template-columns: 1fr;
    }
}

.faaliyet-kart {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-top: 4px solid var(--ana-renk);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.faaliyet-kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faaliyet-kart.aktif {
    border-top-color: var(--vurgu-renk);
}

.faaliyet-kart.tamamlandi {
    border-top-color: #7f8c8d;
    opacity: 0.8;
}

.faaliyet-kart.iptal {
    border-top-color: var(--hata);
}

.fk-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.fk-header h4 {
    margin: 0;
    color: var(--ana-renk);
    font-size: 16px;
}

.fk-body {
    padding: 15px;
    flex: 1;
    font-size: 14px;
    color: #555;
}

.fk-footer {
    padding: 15px;
    background: #f9f9f9;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fk-tarih {
    font-size: 12px;
    color: #777;
    display: block;
}

/* 3. Durum Rozetleri */
.rozet {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: white;
    display: inline-block;
    font-weight: 600;
}

.rozet-yesil {
    background-color: var(--vurgu-renk);
}

.rozet-sari {
    background-color: var(--uyari);
}

.rozet-kirmizi {
    background-color: var(--hata);
}

.rozet-gri {
    background-color: #95a5a6;
}

.rozet-mavi {
    background-color: #3498db;
}

/* 4. Modal (Yardımcı Lider Ekleme vb.) */
.modal {
    display: none;
    /* Varsayılan gizli */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Arkaplan karartma */
}

.modal-icerik {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: animatetop 0.4s;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.kapat-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.kapat-btn:hover {
    color: black;
}

/* --- Mobil Uyumluluk Ekleri --- */
@media (max-width: 768px) {
    .mobil-gizle {
        display: none !important;
    }

    /* Butonları mobilde sadece ikon olacak şekilde hizala */
    .data-table .btn-kucuk {
        padding: 6px 10px;
    }

    /* İkonların ortalanması için */
    .data-table .btn-kucuk i {
        margin: 0;
    }

    /* Tablo içinde buton formlarını yan yana tut */
    .data-table td form {
        display: inline-block;
        margin-right: 5px;
    }

    /* --- TABLOYU KARTA DÖNÜŞTÜRME --- */
    /* Kullanıcı isteği: Mobilde tablo yerine kart görünümü olması */
    .data-table.display.nowrap {
        border: none;
    }

    .data-table.display.nowrap thead {
        display: none;
    }

    .data-table.display.nowrap tbody tr {
        display: block;
        margin-bottom: 20px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        padding: 10px;
    }

    .data-table.display.nowrap tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .data-table.display.nowrap tbody td:last-child {
        border-bottom: none;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 5px;
    }

    .data-table.display.nowrap tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        color: var(--ana-renk);
        text-align: left;
    }
}

/* ==========================================================================
   RESİM KIRPMA (CROPPER) MODAL STİLLERİ
   ========================================================================== */

/* Modal Özel Boyutlandırma */
.cropper-modal-icerik {
    max-width: 600px;
    width: 95%;
    margin: 5% auto;
    padding: 0;
    overflow: hidden;
}

.cropper-modal-icerik .modal-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--ana-renk);
    color: white;
}

.cropper-modal-icerik .modal-baslik h3 {
    margin: 0;
    font-size: 16px;
}

.cropper-modal-icerik .modal-baslik .kapat-btn {
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cropper-modal-icerik .modal-baslik .kapat-btn:hover {
    opacity: 0.8;
}

/* Cropper Container */
.cropper-container-wrapper {
    background: #1a1a1a;
    padding: 20px;
}

.cropper-container-wrapper .cropper-container {
    max-height: 350px;
    overflow: hidden;
}

.cropper-container-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 350px;
    margin: 0 auto;
}

/* Cropper Kontrol Butonları */
.cropper-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cropper-controls .btn {
    padding: 10px 15px;
    min-width: 44px;
    min-height: 44px;
}

/* Yükleme Animasyonu */
.cropper-loading {
    text-align: center;
    padding: 15px;
    background: #fff3cd;
    color: #856404;
    font-weight: 500;
}

.cropper-loading i {
    margin-right: 8px;
}

/* Onay/İptal Butonları */
.cropper-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background: white;
}

.cropper-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
}

/* Daire Kırpma Görünümü - Cropper.js'e özel */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-view-box {
    outline: 3px solid var(--vurgu-renk);
    outline-offset: -3px;
}

/* Profil Resmi Hover Efekti */
.profil-foto-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.profil-foto-wrapper img {
    display: block;
    transition: filter 0.3s ease;
}

.profil-foto-wrapper:hover img {
    filter: brightness(0.7);
}

.profil-foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    z-index: 10;
}

.profil-foto-wrapper:hover .profil-foto-overlay {
    opacity: 1;
}

.profil-foto-degistir-text {
    display: block;
    font-size: 11px;
    margin-top: 5px;
}

/* Drag & Drop Alanı */
.foto-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.foto-dropzone:hover,
.foto-dropzone.dragover {
    border-color: var(--vurgu-renk);
    background: #f0fff0;
}

.foto-dropzone i {
    font-size: 32px;
    color: #999;
    margin-bottom: 10px;
}

.foto-dropzone.dragover i {
    color: var(--vurgu-renk);
}

.foto-dropzone p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .cropper-modal-icerik {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }

    .cropper-container-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cropper-controls {
        flex-wrap: wrap;
    }

    .cropper-controls .btn {
        padding: 12px 18px;
    }

    .cropper-actions {
        padding: 10px 15px;
    }

    .cropper-actions .btn {
        padding: 14px;
    }
}

/* ==========================================================================
   FOTOĞRAF LİGHTBOX VE ÇİFT İKON SİSTEMİ
   ========================================================================== */

/* Global Lightbox Modal - Tüm sayfalarda kullanılabilir */
.foto-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.92);
}

.foto-lightbox-content {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 800px;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.foto-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 2001;
}

.foto-lightbox-close:hover {
    color: var(--vurgu-renk);
    transform: scale(1.1);
}

/* Liste Sayfalarındaki Fotoğraflar - Tıklanabilir */
.foto-buyut {
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.foto-buyut:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Düzenleme Sayfaları - Çift İkon Overlay */
.profil-foto-overlay-cift {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 10;
}

.profil-foto-wrapper:hover .profil-foto-overlay-cift {
    opacity: 1;
}

.foto-overlay-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
    border: none;
}

.foto-overlay-btn:hover {
    transform: scale(1.1);
    background: var(--vurgu-renk);
}

.foto-overlay-btn:hover i,
.foto-overlay-btn:hover span {
    color: white;
}

.foto-overlay-btn i {
    font-size: 18px;
    color: var(--ana-renk);
    margin-bottom: 2px;
}

.foto-overlay-btn span {
    font-size: 9px;
    color: var(--ana-renk);
    font-weight: 600;
}

/* Mobil: Çift İkon Toggle Sistemi */
@media (max-width: 768px) {

    /* Mobilde hover yerine class ile kontrol */
    .profil-foto-wrapper:hover .profil-foto-overlay-cift {
        opacity: 0;
        /* Hover'ı devre dışı bırak */
    }

    /* Aktif class ile göster */
    .profil-foto-overlay-cift.overlay-aktif {
        opacity: 1;
    }

    /* Fotoğrafa dokunulduğunu göstermek için hafif efekt */
    .profil-foto-wrapper.foto-tapped img {
        filter: brightness(0.8);
    }

    /* Mobilde butonlar biraz daha büyük olsun (dokunma alanı) */
    .foto-overlay-btn {
        width: 50px;
        height: 50px;
    }

    .foto-overlay-btn i {
        font-size: 16px;
    }

    .foto-overlay-btn span {
        font-size: 8px;
    }
}