/* =========================================
   LiveVora ADMIN - PREMIUM DASHBOARD CSS
   ========================================= */
:root {
    --bg-dark: #0f172a;       /* Ana Arka Plan */
    --bg-card: #1e293b;       /* Kart Arka Planı */
    --primary: #6366f1;       /* Mor Vurgu */
    --text-main: #f8fafc;     /* Beyaz Yazı */
    --text-muted: #94a3b8;    /* Gri Yazı */
    --border: rgba(255,255,255,0.05);
    --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SIDEBAR (SOL MENÜ) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 20px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
}

.brand span { color: var(--primary); }

.nav-links { list-style: none; display: flex; flex-direction: column; gap: 5px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: white;
}

.nav-link.active { border-left: 3px solid var(--primary); }

.nav-icon { width: 20px; height: 20px; }

/* --- MAIN CONTENT (SAĞ TARAF) --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    transition: margin-left 0.3s ease;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title h2 { font-size: 1.8rem; }
.page-title p { color: var(--text-muted); font-size: 0.9rem; }

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: white;
}

/* --- STATS CARDS (KARTLAR) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 { font-size: 2rem; margin-bottom: 5px; }
.stat-info p { color: var(--text-muted); font-size: 0.9rem; }

.stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

/* --- TABLE (LİSTE) --- */
.recent-orders {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.section-head { margin-bottom: 20px; font-size: 1.2rem; font-weight: 600; }

table { width: 100%; border-collapse: collapse; min-width: 600px; }

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }
td { font-size: 0.95rem; }

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status.success { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status.pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

/* --- MOBILE TOGGLE --- */
.menu-toggle {
    display: none;
    background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; margin-right: 15px; }
    .top-header { justify-content: flex-start; }
    .user-profile { margin-left: auto; }
}
/* =========================================
   YAYINCILAR SAYFASI & MODAL STİLLERİ
   ========================================= */

/* Filtre ve Arama Alanı */
.filter-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    width: 300px;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Tablo İçi Kullanıcı Detayı */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.table-avatar.default {
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .name { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.user-info .email { font-size: 0.8rem; color: var(--text-muted); }

/* Aksiyon Butonları */
.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
    transition: opacity 0.2s;
}

.btn-action:hover { opacity: 0.8; }

.btn-action.edit { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.btn-action.delete { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* --- MODAL (POP-UP) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    width: 500px;
    max-width: 90%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    background: rgba(255,255,255,0.02);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 1.1rem; color: white; }

.close-btn {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer;
}

.modal-body { padding: 20px; }

/* Form Elemanları */
.edit-form { display: flex; flex-direction: column; gap: 15px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 0.85rem; color: var(--text-muted); }

.form-input {
    background: #0f172a;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.form-input:focus { border-color: var(--primary); }

.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

/* Fotoğraf Yükleme */
.form-group.center { align-items: center; margin-bottom: 10px; }
.img-preview img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.upload-btn { color: var(--primary); font-size: 0.85rem; cursor: pointer; margin-top: 5px; font-weight: 600; }

.modal-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
/* =========================================
   BAŞVURU SAYFASI & İNCELEME STİLLERİ
   ========================================= */

/* Tab Filtreleri (Bekleyenler, Onaylananlar vs.) */
.tab-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn:hover { background: rgba(255,255,255,0.05); color: white; }

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Platform Rozetleri */
.platform-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.platform-badge.tiktok { background: rgba(0, 0, 0, 0.5); border: 1px solid #ff0050; color: #ff0050; text-shadow: 1px 1px 0 #00f2ea; }
.platform-badge.twitch { background: rgba(145, 70, 255, 0.15); color: #9146ff; border: 1px solid rgba(145, 70, 255, 0.3); }
.platform-badge.youtube { background: rgba(255, 0, 0, 0.15); color: #ff0000; border: 1px solid rgba(255, 0, 0, 0.3); }

/* İncele Butonu */
.btn-action.review {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border);
}

.btn-action.review:hover { background: white; color: black; }

/* --- İNCELEME MODALI ÖZEL STİLLER --- */
.review-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.review-avatar img {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.review-info h4 { font-size: 1.1rem; margin-bottom: 5px; color: white; }
.platform-tag { font-size: 0.85rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; }

.detail-item { margin-bottom: 20px; }
.detail-item .label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; }

.link-text {
    color: #38bdf8; /* Açık mavi link */
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.link-text:hover { text-decoration: underline; }

.note-box {
    background: rgba(0,0,0,0.2);
    border: 1px dashed var(--border);
    padding: 15px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Büyük Onay/Red Butonları */
.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.review-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.review-actions button:hover { transform: translateY(-2px); }

.btn-reject-big {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-approve-big {
    background: #10b981; /* Yeşil */
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
/* =========================================
   KANIT (SS) GÖRÜNTÜLEME ALANI
   ========================================= */

/* Modalı Genişlet (Resim sığsın diye) */
.modal-box.large {
    width: 800px; /* Daha geniş */
    max-width: 95%;
}

.review-grid {
    display: flex;
    gap: 30px;
}

.review-left { flex: 1; border-right: 1px solid var(--border); padding-right: 20px; }
.review-right { flex: 1; display: flex; flex-direction: column; }

/* SS Kutusu */
.evidence-container {
    margin-top: 10px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 250px; /* Sabit yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.evidence-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Resmi kutuya sığdır */
    transition: transform 0.3s;
}

/* Hover Efekti */
.evidence-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.evidence-container:hover .evidence-overlay {
    opacity: 1;
}

.evidence-container:hover img {
    transform: scale(1.05); /* Hafif yakınlaşma */
}

/* MOBİL UYUM */
@media (max-width: 768px) {
    .review-grid {
        flex-direction: column; /* Mobilde alt alta */
    }
    
    .review-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .evidence-container {
        height: 200px;
    }
}
/* =========================================
   MOBİL İÇİN ÖZEL MODAL AYARLARI (GÜÇLENDİRİLMİŞ)
   ========================================= */

@media (max-width: 900px) {
    
    /* 1. Modalı Ekrana Sığdır */
    .modal-box.large {
        width: 100%;
        height: 100%; /* Tam ekran hissi */
        max-height: 100vh;
        border-radius: 0; /* Mobilde köşe yuvarlamaya gerek yok */
        display: flex;
        flex-direction: column;
    }

    /* 2. İçeriği Alt Alta Diz */
    .review-grid {
        flex-direction: column; /* Yan yana değil, alt alta */
        gap: 20px;
    }
    
    /* 3. Kaydırma Ayarı (Çok Önemli) */
    /* Header ve Footer sabit kalsın, sadece orta kısım kaysın */
    .modal-body {
        overflow-y: auto; /* Dikey kaydırma aç */
        flex: 1; /* Kalan tüm boşluğu kapla */
        padding: 15px; /* Mobilde kenar boşluğunu biraz azalt */
    }

    /* 4. Sol Taraf (Bilgiler) Düzeni */
    .review-left {
        border-right: none; /* Yan çizgi kalksın */
        border-bottom: 1px solid var(--border); /* Alt çizgi gelsin */
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 0;
    }

    /* 5. Sağ Taraf (Resim) Düzeni */
    .evidence-container {
        height: 220px; /* Mobilde resim alanı yüksekliği */
        background: #000; /* Resim yoksa siyah zemin şık durur */
    }

    /* 6. Butonlar */
    .review-actions {
        padding: 15px; /* Butonların etrafını ferahlat */
        background: var(--bg-card); /* Arkası dolu olsun, içeriğin üstüne binmesin */
        border-top: 1px solid var(--border);
        margin-top: 0; /* Body'den ayırma, yapışık olsun */
    }

    .review-actions button {
        padding: 15px; /* Mobilde parmakla basmak kolay olsun */
        font-size: 1rem;
    }
}
/* =========================================
   MOBİL İÇİN TABLO VE GENEL DÜZEN DÜZELTMESİ
   ========================================= */

@media (max-width: 900px) {
    
    /* 1. Ana İçerik Kenar Boşluklarını Küçült */
    .main-content {
        padding: 15px; /* Mobilde 30px çok fazla, 15px ideal */
        width: 100%;
        overflow-x: hidden; /* Sayfanın sağa kaymasını engelle */
    }

    /* 2. Başlık Alanını Düzenle */
    .top-header {
        flex-wrap: wrap; /* Sığmazsa alt satıra geçsin */
        gap: 10px;
    }
    
    .page-title h2 {
        font-size: 1.4rem; /* Mobilde başlığı biraz küçült */
    }

    /* 3. Filtre Butonları (Kaydırılabilir Yap) */
    .filter-bar {
        overflow-x: auto; /* Yan yana sığmazsa kaydır */
        padding-bottom: 5px;
        white-space: nowrap; /* Alt satıra geçmesin */
        -webkit-overflow-scrolling: touch;
    }

    .tab-filters {
        display: inline-flex; /* Yan yana dizilsin */
    }

    /* 4. TABLO DÜZELTMESİ (En Önemlisi) */
    .recent-orders {
        width: 100%;
        overflow-x: auto; /* Yatay kaydırmayı aç */
        -webkit-overflow-scrolling: touch; /* iPhone'da akıcı kaydırma */
        display: block; /* Blok element gibi davranmalı */
    }

    table {
        width: 100%;
        min-width: 700px; /* Tabloyu sıkıştırma! Geniş bırak, scroll ile gezilsin */
        white-space: nowrap; /* Metinler alt satıra kayıp çirkinleşmesin */
    }

    /* Hücre içlerini biraz sıkılaştır */
    th, td {
        padding: 12px 10px;
    }

    /* Avatar ve isim alanını mobilde hizala */
    .user-cell {
        min-width: 180px; /* İsim alanı ezilmesin */
    }
}
/* --- Detay Kutuları Stili --- */
.value-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-family: monospace; /* Numaralar düzgün dursun diye */
}

.value-box.highlight {
    color: #fcd34d; /* Referans sarı renkte parlasın */
    border-color: rgba(252, 211, 77, 0.3);
    background: rgba(252, 211, 77, 0.1);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* =========================================
   YENİ ÜRÜN KARTI STİLLERİ (DAHA ŞİRİN VE KÜÇÜK)
   ========================================= */

/* Grid Ayarı */
.product-grid {
    display: grid;
    /* Mobilde 2 sütun, Masaüstünde 4 sütuna kadar çıkabilir */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; /* Boşluğu hafif azalttık */
    margin-top: 30px;
}

/* Kartın Kendisi */
.product-card {
    background: #1e293b;
    border-radius: 16px; /* Köşeleri biraz daha yuvarladık */
    padding: 15px; /* İç boşluğu azalttık */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px) scale(1.01); /* Hafif yukarı kayma ve büyüme */
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2); /* Mor gölge */
    border-color: #6366f1; /* Mor çerçeve */
}

/* Ürün Resmi */
.product-image {
    width: 100%;
    height: 140px; /* Yüksekliği küçülttük */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 2px solid #334155; /* Sade gri çerçeve */
}

/* Başlık */
.product-title {
    font-size: 1rem; /* Daha küçük başlık */
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
    /* Metin taşmasını gizle */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* Rozet (Fiziksel/Dijital) */
.platform-badge {
    padding: 3px 8px; /* Daha şirin rozet */
    font-size: 0.7rem !important; 
    border-radius: 4px !important;
    margin-bottom: 8px !important;
    align-self: flex-start; /* Sadece rozet kadar yer kaplar */
}

/* Açıklama */
.product-desc {
    font-size: 0.85rem; /* Daha küçük açıklama */
    color: #94a3b8;
    margin-bottom: 10px;
    height: 38px; /* İki satırlık sabit yükseklik */
    overflow: hidden;
    line-height: 1.35;
}

/* Fiyat ve Buton */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Footer'ı alta sabitler */
}

.product-price {
    font-size: 1.6rem; /* Fiyatı daha büyük ve çarpıcı yaptık */
    font-weight: 800;
    color: #f59e0b; /* Turuncu/Sarı Vurgu */
    letter-spacing: -0.5px;
}

/* Talep Butonu */
.btn-talep {
    padding: 6px 12px; /* Daha kompakt buton */
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}
.btn-talep:hover:not(:disabled) {
    transform: scale(1.05);
}
/* =========================================
   SIDEBAR SCROLL (KAYDIRMA) DÜZELTMESİ
   ========================================= */

.sidebar {
    /* Mevcut özelliklere ek olarak: */
    overflow-y: auto; /* İçerik taşarsa dikey kaydırmayı aç */
    
    /* Firefox için ince scrollbar ayarı */
    scrollbar-width: thin; 
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* --- Webkit Tarayıcılar (Chrome, Edge, Safari) İçin Özel Scrollbar --- */

/* Scrollbar Genişliği */
.sidebar::-webkit-scrollbar {
    width: 6px; /* Çok ince ve zarif */
}

/* Arka Plan (Görünmez olsun) */
.sidebar::-webkit-scrollbar-track {
    background: transparent; 
}

/* Çubuğun Kendisi */
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1); /* Hafif beyaz */
    border-radius: 10px; /* Yuvarlak hatlar */
}

/* Üzerine Gelince */
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3); /* Biraz daha belirgin */
}