@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* DEĞİŞKENLER & RESET */
:root {
    --bg-body: #09090b;       /* Ana Arkaplan */
    --bg-rail: #000000;       /* Sol İkon Şeridi */
    --bg-panel: #0c0c0e;      /* Açılan Menü */
    --bg-card: #121212;       /* Kartlar */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-blue: #3b82f6;   /* Mavi Vurgu */
    --border-color: #27272a;
    --hover-bg: #18181b;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden; /* Body scrollunu kapat, içerik scroll olsun */
}

/* --- SIDEBAR YAPISI --- */
.sidebar-wrapper {
    display: flex;
    position: relative;
    z-index: 1000;
    height: 100vh;
    flex-shrink: 0; /* Küçülmesini engelle */
}

/* 1. İkon Şeridi (Rail) */
.icon-rail {
    width: 70px;
    background-color: var(--bg-rail);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    z-index: 20;
}

.rail-top, .rail-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 20px;
}

.rail-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rail-btn:hover {
    color: #fff;
    background-color: var(--hover-bg);
}

.rail-btn.active {
    background-color: #fff;
    color: #000; /* Seçili olunca siyah ikon */
}

.rail-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

/* 2. Açılır Panel (Drawer) */
.submenu-panel {
    width: 0;
    height: 100vh;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute; /* Ana içeriğin üzerine çıksın */
    left: 70px; /* Rail genişliği kadar sağda */
    top: 0;
}

.submenu-panel.open {
    width: 240px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5); /* Gölge efekti */
}

.submenu-content {
    padding: 25px 20px;
    width: 240px; /* Sabit içerik genişliği */
    display: none;
}

.menu-header {
    font-size: 12px;
    text-transform: uppercase;
    color: #52525b;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}

.sub-link:hover {
    background-color: var(--hover-bg);
    color: var(--text-main);
}

.sub-link i { font-size: 18px; }


/* --- MAIN CONTENT & DASHBOARD --- */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto; /* İçerik kaydırma */
    padding: 0; /* GÜNCELLEME: Boşluk sıfırlandı, topbar yapışsın diye */
    position: relative;
}

/* İçerik Kapsayıcı (GÜNCELLEME: Padding buraya taşındı) */
.content-wrapper {
    padding: 30px 40px;
}

@media (max-width: 992px) {
    .content-wrapper {
        padding: 20px;
    }
}

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

.breadcrumb {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb .current { color: var(--text-main); font-weight: 600; }

.header-actions button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
}
.header-actions button:hover { border-color: #fff; color: #fff; }

/* Dashboard Kartları */
.page-title { margin-bottom: 25px; font-size: 24px; font-weight: 600; }

.chart-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stats-box {
    display: flex;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.stat-item {
    padding: 8px 20px;
    text-align: center;
}
.stat-item.active { background-color: #27272a; }

.stat-item .label { display: block; font-size: 11px; color: var(--text-muted); }
.stat-item .value { font-size: 14px; font-weight: 700; color: #fff; }

.chart-area { flex: 1; position: relative; width: 100%; }



/* --- KULLANICI SAYFASI & TABLO STİLLERİ --- */

/* Başlık ve Buton Satırı */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Mavi Buton (Yeni Ekle) */
.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover {
    background-color: #2563eb;
}

/* Tablo Kartı */
.table-card {
    background-color: #0c0c0e; /* Görseldeki koyu zemin */
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
}

/* Arama Alanı */
.table-search {
    margin-bottom: 20px;
}

.table-search label {
    display: block;
    color: #71717a;
    font-size: 13px;
    margin-bottom: 8px;
}

.search-input-wrapper {
    position: relative;
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-input-wrapper i {
    color: #71717a;
    font-size: 18px;
    margin-right: 10px;
}

.search-input-wrapper input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 14px;
}

/* TABLO YAPISI */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    text-align: left;
    color: #52525b; /* Koyu gri başlıklar */
    font-size: 12px;
    font-weight: 600;
    padding: 15px 10px;
    border-bottom: 1px solid #1f1f1f;
}

.custom-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #1f1f1f;
    color: #fff;
    font-size: 14px;
    vertical-align: middle;
}

/* Tablo Sütun Özelleştirmeleri */
.text-bold { font-weight: 600; color: #fff; }
.text-muted { color: #a1a1aa; }

.user-info-cell {
    display: flex;
    flex-direction: column;
}
.u-name { font-weight: 600; font-size: 14px; color: #fff; }
.u-username { font-size: 12px; color: #71717a; margin-top: 2px; }

.badge-role {
    color: #a1a1aa;
    font-size: 13px;
}

.credit-box {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}
.credit-box .currency {
    font-size: 10px;
    color: #71717a;
}

.date-box {
    display: flex;
    flex-direction: column;
}
.date-main { font-size: 13px; font-weight: 500; }
.date-sub { font-size: 11px; color: #71717a; margin-top: 3px; }

/* İŞLEM BUTONLARI (Action Buttons) */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

/* Üç Nokta (Gri) */
.btn-more {
    background-color: transparent;
    color: #71717a;
}
.btn-more:hover { color: #fff; background-color: #27272a; }

/* Düzenle (Yeşil) */
.btn-edit {
    background-color: #10b981; /* Yeşil */
    color: white;
}
.btn-edit:hover { background-color: #059669; }

/* Sil (Kırmızı) */
.btn-delete {
    background-color: #ef4444; /* Kırmızı */
    color: white;
}
.btn-delete:hover { background-color: #dc2626; }


/* --- ROLLER SAYFASI STİLLERİ --- */

/* Tablo Başlıklarındaki Sıralama İkonu */
.sort-icon {
    font-size: 12px;
    margin-left: 5px;
    color: #52525b;
    vertical-align: middle;
    cursor: pointer;
}

/* Rol Bilgisi (Ad ve Slug) */
.role-info {
    display: flex;
    flex-direction: column;
}

.role-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.role-slug {
    font-size: 12px;
    color: #71717a; /* Sönük gri */
    margin-top: 2px;
}


/* --- HESAP OLUŞTURMA FORMU STİLLERİ --- */

/* Header Butonları */
.header-actions-text {
    display: flex;
    gap: 10px;
}

.btn-light {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}

/* Form Alanı */
.form-card {
    /* Görselde kart arkaplanı yok gibi, direkt zemin üzerinde duruyor */
    padding: 10px 0; 
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #a1a1aa;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Input Tasarımı */
.form-control {
    width: 100%;
    background-color: #0c0c0e; /* Koyu zemin */
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-control:focus {
    border-color: #3b82f6;
    background-color: #000;
}

/* Yan Yana Inputlar */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

/* Roller Tag Kısmı */
.form-section {
    margin-top: 30px;
    background-color: #0c0c0e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #1f1f1f;
    margin-bottom: 20px;
}

.section-label {
    display: block;
    color: #71717a;
    font-size: 13px;
    margin-bottom: 15px;
}

.tags-input {
    display: flex;
    align-items: center;
}

.tag {
    background-color: #27272a;
    color: #e4e4e7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* İzinler Grid (4 Sütunlu Yapı) */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Eşit Sütun */
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a1a1aa;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.checkbox-item:hover {
    color: #fff;
}

.checkbox-item input[type="checkbox"] {
    accent-color: #3b82f6; /* Checkbox rengi */
    width: 16px;
    height: 16px;
    background-color: #27272a;
    border-radius: 4px;
    cursor: pointer;
}

/* Oluştur Butonu (Sağ Alt) */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-create {
    background-color: #10b981; /* Yeşil */
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px; /* Görseldeki gibi yuvarlak hatlı */
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-create:hover {
    background-color: #059669;
}

/* --- TOGGLE SWITCH (Açma Kapama Düğmesi) --- */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #27272a; /* Kapalı renk */
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white; /* Top rengi */
    transition: .4s;
}

/* Açık (Checked) Durumu */
input:checked + .slider {
    background-color: #3b82f6; /* Mavi renk */
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Yuvarlak Switch */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* --- SİLME MODALI (POPUP) STİLLERİ --- */

/* Arka Plan (Overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Yarı saydam siyah */
    backdrop-filter: blur(4px); /* Arka planı bulanıklaştır */
    z-index: 9999; /* En üstte durması için */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Modal Aktif Olunca */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Kutusu */
.modal-content {
    background-color: #0c0c0e; /* Koyu gri zemin */
    border: 1px solid #1f1f1f;
    width: 400px;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Sağ Üstteki X Butonu */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #71717a;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.modal-close:hover { color: #fff; }

/* Kırmızı Çöp Kutusu İkonu */
.modal-icon-box {
    margin-bottom: 20px;
}
.modal-icon-box i {
    font-size: 54px;
    color: #ef4444; /* Kırmızı */
}

/* Başlık ve Yazı */
.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.modal-text {
    font-size: 14px;
    color: #a1a1aa;
    margin-bottom: 30px;
}

/* Buton Alanı */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* İptal Butonu */
.btn-modal-cancel {
    background-color: #27272a;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-modal-cancel:hover { background-color: #3f3f46; }

/* Sil Butonu (Kırmızı) */
.btn-modal-confirm {
    background-color: #ef4444;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-modal-confirm:hover { background-color: #dc2626; }


/* --- HESAP GÖRÜNTÜLEME SAYFASI --- */

/* Sayfa Düzeni (Grid) */
.view-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Sol geniş, Sağ 350px sabit */
    gap: 25px;
    align-items: start;
}

.section-title {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Sol Taraf: Grafik Alanı */
.stats-placeholder-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    height: 200px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.stats-top-label {
    font-size: 12px;
    color: #71717a;
    background-color: #18181b;
    padding: 5px 10px;
    border-radius: 4px;
    align-self: flex-start;
}

.stats-empty-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
    font-size: 13px;
}

/* Sol Taraf: Akordiyonlar */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    background-color: #0c0c0e;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.accordion-header:hover {
    background-color: #18181b;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg); /* Ok döner */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #121212;
    color: #a1a1aa;
    font-size: 13px;
    padding: 0 15px; /* JS ile açılacak */
}

/* Sağ Taraf: Profil Kartı */
.profile-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
}

.profile-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: 14px;
    color: #71717a;
    font-weight: 600;
}

.profile-user-info {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f1f1f;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px; /* Karemsi avatar */
}

.p-name { font-weight: 700; color: #fff; font-size: 15px; }
.p-username { color: #a1a1aa; font-size: 12px; }
.p-badge {
    display: inline-block;
    background-color: #27272a;
    color: #a1a1aa;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Detay Satırları */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.d-label { color: #fff; font-weight: 600; }
.d-value { color: #a1a1aa; text-align: right; }
.email-val { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.ip-val { font-family: monospace; font-size: 11px; }

/* Aksiyon Butonları */
.profile-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    border: none;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-green { background-color: #10b981; }
.btn-green:hover { background-color: #059669; }

.btn-blue { background-color: #3b82f6; }
.btn-blue:hover { background-color: #2563eb; }

.btn-yellow { background-color: #eab308; color: #000; }
.btn-yellow:hover { background-color: #ca8a04; }

.btn-red { background-color: #ef4444; max-width: 40px; } /* Sil butonu dar olsun */
.btn-red:hover { background-color: #dc2626; }


/* --- ROL DÜZENLEME SAYFASI ÖZEL --- */

/* Kod Alanları (Textarea) */
.code-area {
    font-family: 'Courier New', Courier, monospace; /* Kod fontu */
    background-color: #050505; /* Daha koyu zemin */
    color: #a1a1aa;
    resize: vertical; /* Sadece dikey boyu değişsin */
    line-height: 1.5;
}

/* Temiz Bölüm (Çerçevesiz) - Switch için */
.form-section-clean {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* --- ROL SAYFALARI ORTAK CSS --- */

/* Kod Alanları (Siyah Arkaplanlı Textarea) */
.code-area {
    font-family: 'Courier New', Courier, monospace;
    background-color: #050505 !important; /* Özellikle siyah olsun */
    color: #a1a1aa;
    resize: vertical;
    line-height: 1.5;
    border: 1px solid #27272a;
}

/* Switch (Anahtar) için Temiz Alan */
.form-section-clean {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Oluştur Butonu (Yeşil) */
.btn-create {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px; /* Görseldeki gibi hafif oval */
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-create:hover {
    background-color: #059669;
}


/* --- YETKİLİLER SAYFASI BUTONLARI --- */

/* Göz (Görüntüle) Butonu - Mavi */
.btn-view {
    background-color: #3b82f6; /* Parlak Mavi */
    color: white;
}
.btn-view:hover {
    background-color: #2563eb;
}

/* Sıralama İkonu (Varsa üstüne yazar, yoksa ekler) */
.sort-icon {
    font-size: 11px;
    margin-left: 6px;
    color: #52525b;
    vertical-align: middle;
    cursor: pointer;
    transition: 0.2s;
}

.sort-icon:hover {
    color: #fff;
}


/* --- SİPARİŞ & ÖDEME SAYFALARI --- */

/* Filtreleme Satırı (Arama ve Dropdown Yan Yana) */
.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-search {
    flex: 1; /* Arama çubuğu geniş alanı kaplasın */
}

.filter-status {
    width: 200px; /* Dropdown sabit genişlik */
}

.filter-row label {
    display: block;
    color: #71717a;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Dropdown Tasarımı */
.form-select {
    width: 100%;
    height: 45px;
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #fff;
    padding: 0 15px;
    outline: none;
    cursor: pointer;
    appearance: none; /* Varsayılan oku gizle (istenen tasarım için) */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2371717a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* Durum Rozetleri (Badges) */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background-color: #10b981; /* Yeşil */
    color: white;
}

.badge-danger {
    background-color: #ef4444; /* Kırmızı */
    color: white;
}


/* --- SİPARİŞ GÖRÜNTÜLEME SAYFASI --- */

/* Grid Yapısı (Sol geniş, Sağ sabit 350px) */
.order-view-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    align-items: start;
}

/* Sol Kart: Ürün Listesi */
.order-products-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px; /* Boş görünmesin */
}

/* Basit Tablo (Sadece bu sayfa için) */
.simple-table {
    width: 100%;
    border-collapse: collapse;
}

.simple-table th {
    color: #52525b;
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #1f1f1f;
}

.simple-table td {
    padding: 20px 0;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid #1f1f1f;
}

.simple-table tr:last-child td {
    border-bottom: none; /* Son satırda çizgi olmasın */
}

/* Sağ Kart: Özet */
.order-summary-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 25px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Çok satırlı olursa hizayı bozma */
    font-size: 13px;
}

.s-label {
    color: #fff;
    font-weight: 600;
}

.s-value {
    color: #e4e4e7;
    text-align: right;
}

.s-value.text-muted {
    color: #71717a;
}

/* Kullanıcı Bilgisi (İsim alt alta) */
.s-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.u-main { font-weight: 600; color: #fff; }
.u-sub { font-size: 11px; color: #71717a; margin-top: 2px; }



/* --- SİPARİŞ OLUŞTURMA SAYFASI --- */

/* Ana Grid */
.order-create-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Sol geniş, sağ sabit */
    gap: 25px;
    align-items: start;
}

/* Sol Kart */
.card-left {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-section-title {
    font-size: 14px;
    color: #71717a;
    font-weight: 600;
}

/* Küçük Mavi Ekle Butonu */
.btn-small-blue {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Ürün Satır Başlıkları */
.product-row-header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding: 0 5px;
}

.product-row-header span {
    color: #52525b;
    font-size: 12px;
    font-weight: 600;
}

/* Ürün Satırı */
.product-row {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #050505; /* Çok koyu zemin */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1f1f1f;
    margin-bottom: 10px;
}

/* Inputlar */
.form-control-dark {
    width: 100%;
    background-color: #121212;
    border: 1px solid #27272a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}
.form-control-dark:focus {
    border-color: #3b82f6;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Kilitli Alan (Toplam) */
.input-wrapper.locked {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding-right: 5px;
}

/* Sil Butonu */
.btn-row-delete {
    background-color: #27271a; /* Koyu kırmızımsı veya gri */
    border: 1px solid #3f1f1f;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-row-delete:hover {
    background-color: #ef4444;
    color: white;
}

/* Sağ Kart */
.card-right {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
}

/* Toplam Kutusu */
.total-display-box {
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 600;
}

.total-display-box .currency {
    color: #71717a;
    font-size: 12px;
}

/* Tam Genişlik Yeşil Buton */
.btn-create-full {
    width: 100%;
    background-color: #10b981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}
.btn-create-full:hover {
    background-color: #059669;
}



/* --- ÜRÜNLER SAYFASI --- */

/* Üst Başlık ve Toggle Grubu Düzeni */
.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toggle Buton Grubu (Varsayılan/Tablo) */
.toggle-group {
    display: inline-flex;
    background-color: #0c0c0e;
    border: 1px solid #27272a;
    border-radius: 20px;
    padding: 3px;
    width: fit-content;
}

.btn-toggle {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-toggle:hover {
    color: #fff;
}

.btn-toggle.active {
    background-color: #fff;
    color: #000;
    font-weight: 600;
}

/* Ürün Bilgi Hücresi */
.product-info-cell {
    display: flex;
    flex-direction: column;
}
.p-name { font-weight: 600; font-size: 14px; color: #fff; }
.p-id { font-size: 11px; margin-top: 2px; }

/* Fiyat ve Stok Kutuları */
.price-box { font-weight: 600; color: #fff; }
.price-box .currency { font-size: 11px; color: #71717a; }

.stock-box { display: flex; flex-direction: column; }
.stock-main { font-weight: 600; font-size: 13px; color: #fff; }
.stock-sub { font-size: 11px; color: #71717a; }

/* Kopyala Butonu (Mavi) */
.btn-copy {
    background-color: #3b82f6; /* Mavi */
    color: white;
}
.btn-copy:hover {
    background-color: #2563eb;
}


/* --- ÜRÜN OLUŞTURMA SAYFASI --- */

.mb-20 { margin-bottom: 20px; }
.mb-15 { margin-bottom: 15px; }
.mt-20 { margin-top: 20px; }

/* Üst Kısım Grid (Ad/Kategori vs Resim) */
.product-top-grid {
    display: flex;
    gap: 25px;
}

.inputs-area {
    flex: 2; /* Sol taraf daha geniş */
}

.image-area {
    flex: 1; /* Sağ taraf */
}

/* Resim Yükleme Kutusu */
.image-upload-box {
    border: 2px dashed #27272a;
    background-color: #050505;
    border-radius: 12px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    transition: 0.2s;
}

.image-upload-box:hover {
    border-color: #3b82f6;
}

.btn-upload {
    background-color: #121212;
    color: #fff;
    border: 1px solid #27272a;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.btn-upload:hover { background-color: #27272a; }


/* Editör Görünümü (Fake WYSIWYG) */
.editor-container {
    border: 1px solid #27272a;
    border-radius: 8px;
    background-color: #050505;
    overflow: hidden;
}

.editor-toolbar {
    background-color: #121212;
    padding: 8px 12px;
    border-bottom: 1px solid #27272a;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a1a1aa;
}

.editor-toolbar i {
    cursor: pointer;
    font-size: 16px;
}
.editor-toolbar i:hover { color: #fff; }

.toolbar-group {
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: #27272a;
}

.editor-textarea {
    width: 100%;
    background-color: #050505;
    border: none;
    color: #fff;
    padding: 15px;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

/* Sekmeler (Tabs) */
.tabs-header {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #1f1f1f;
    padding-bottom: 10px;
    margin-bottom: 20px;
    overflow-x: auto; /* Mobilde taşarsa kaydır */
}

.tab-btn {
    background: transparent;
    border: none;
    color: #71717a;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
    background-color: #18181b;
}

.tab-btn.active {
    background-color: #27272a;
    color: #fff;
    font-weight: 600;
}

/* Switch Satırları */
.switch-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.switch-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Komutlar Bölümü */
.btn-ghost-small {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
}
.btn-ghost-small:hover { color: #fff; }

.command-row-header {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #52525b;
    font-weight: 600;
}

.command-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}


/* --- KATEGORİLER SAYFASI BUTONLARI --- */

/* Mavi Göz (Görüntüle) Butonu */
.btn-view {
    background-color: #3b82f6; /* Parlak Mavi */
    color: white;
}
.btn-view:hover {
    background-color: #2563eb;
}

/* Yeşil Kalem (Düzenle) Butonu */
.btn-edit {
    background-color: #10b981; /* Canlı Yeşil */
    color: white;
}
.btn-edit:hover {
    background-color: #059669;
}

/* Kırmızı Çöp Kutusu (Sil) Butonu */
.btn-delete {
    background-color: #ef4444; /* Canlı Kırmızı */
    color: white;
}
.btn-delete:hover {
    background-color: #dc2626;
}

/* --- KATEGORİ EKLEME/DÜZENLEME --- */

/* Siyah Resim Seç Butonu */
.btn-upload-black {
    background-color: #000;
    color: #fff;
    border: 1px solid #27272a;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}
.btn-upload-black:hover {
    border-color: #52525b;
}

/* Resim Yüklü Olduğundaki Durum (Edit Sayfası) */
.image-upload-box.has-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #27272a; /* Dashed yerine solid */
    position: relative;
    overflow: hidden;
}

/* Resim üzerindeki karartma efekti */
.image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Hafif karartma */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Normalde gizli */
    transition: 0.3s;
}

.image-upload-box.has-image:hover .image-overlay {
    opacity: 1; /* Mouse gelince göster */
}


/* --- TOPLU İNDİRİM SAYFASI --- */

/* --- TOPLU İNDİRİM GÜNCEL CSS --- */

/* Ağaç Yapısı Konteyner */
.tree-view-container {
    /* Görselde border yok gibi, direkt zemin üzerinde */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Her Bir Satırın Kutusu */
.node-content, .tree-item {
    display: flex;
    align-items: center;
    background-color: #121212; /* Koyu gri kutu */
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 5px;
    transition: 0.2s;
}

.node-content:hover, .tree-item:hover {
    border-color: #3f3f46;
}

/* İkonlar ve Checkbox */
.btn-collapse {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.node-checkbox {
    accent-color: #3b82f6; /* Mavi tik */
    width: 16px;
    height: 16px;
    margin-right: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.node-icon {
    color: #a1a1aa; /* Gri klasör ikonu */
    font-size: 18px;
    margin-right: 10px;
}

.item-icon {
    color: #a1a1aa;
    font-size: 16px;
    margin-right: 10px;
    transform: rotate(90deg); /* Etiket ikonu dik dursun */
}

.node-text, .item-text {
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 500;
}

/* Girinti (Hiyerarşi) */
.node-children {
    padding-left: 30px; /* Soldan boşluk */
    border-left: 1px solid #27272a; /* Sol çizgi */
    margin-left: 10px; /* Çizgiyi hizala */
}

/* Kaydet Butonu Alanı */
.save-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #1f1f1f;
}

/* --- KUPONLAR SAYFASI --- */

/* Kupon Kodu Rozeti */
.coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #121212;
    border: 1px solid #27272a;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace; /* Kod havası verir */
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.coupon-badge i {
    color: #3b82f6; /* İkon mavi */
}

.coupon-badge.expired {
    opacity: 0.6;
}
.coupon-badge.expired i {
    color: #71717a;
}

/* İndirim Metin Renkleri */
.text-success { color: #10b981; }
.text-blue { color: #3b82f6; }
.text-white { color: #fff; }

/* Kullanım Limiti (Progress Bar) */
.usage-wrapper {
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.usage-info {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #27272a;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6; /* Mavi Doluluk */
    border-radius: 3px;
}

.progress-fill.red {
    background-color: #ef4444; /* Dolu veya süresi bitmiş */
}


/* --- DESTEK TALEPLERİ SAYFASI --- */

/* Filtreleme Alanı (4 Sütunlu Grid) */
.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Arama çubuğu daha geniş */
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item label {
    display: block;
    color: #71717a;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Tablo Checkbox */
.table-checkbox {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background-color: #121212;
    cursor: pointer;
}

/* Başlık ve ID */
.ticket-info {
    display: flex;
    flex-direction: column;
}
.t-title { font-weight: 600; font-size: 14px; color: #fff; }
.t-id { font-size: 12px; color: #71717a; margin-top: 2px; }

/* Kategori Yazısı */
.text-uppercase { text-transform: uppercase; font-size: 12px; font-weight: 600; }

/* Rozetler (Badges) */
.badge-warning {
    background-color: #eab308; /* Sarı */
    color: #000; /* Sarı üzerine siyah yazı daha okunur */
}

/* Butonlar */
.btn-close {
    background-color: #eab308; /* Sarı (Kapatma Butonu) */
    color: #000;
}
.btn-close:hover {
    background-color: #ca8a04;
}


/* --- DESTEK TALEBİ GÖRÜNTÜLEME --- */

/* Ana Grid Yapısı */
.ticket-view-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Sol 350px, Sağ kalan alan */
    gap: 25px;
    align-items: start;
}

/* Sol Kolon: Bilgi Kartı */
.info-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #1f1f1f;
    font-size: 13px;
}

.info-row.border-none { border-bottom: none; }

.info-row .label { color: #fff; font-weight: 600; }
.info-row .value { color: #a1a1aa; text-align: right; }

.text-yellow { color: #eab308 !important; }
.value-user, .value-date { display: flex; flex-direction: column; text-align: right; }
.u-main { color: #3b82f6; font-weight: 600; }
.time-ago { font-size: 11px; color: #71717a; margin-top: 2px; }

/* Sol Kolon: İşlem Kartı */
.action-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.action-text {
    color: #a1a1aa;
    font-size: 13px;
    margin-bottom: 15px;
}

.action-buttons-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-red-outline {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-red-outline:hover { background-color: #ef4444; color: #fff; }

.btn-yellow {
    background-color: #eab308;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-yellow:hover { background-color: #ca8a04; }


/* Sağ Kolon: Mesajlaşma */
.ticket-chat-area {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 25px;
}

.chat-message {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #1f1f1f;
    padding-bottom: 25px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.msg-author {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
}

.msg-author.text-blue { color: #3b82f6; }

.msg-time {
    color: #71717a;
    font-size: 12px;
    flex: 1; /* Sağa yaslamak için */
}

.btn-msg-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}
.btn-msg-delete:hover { opacity: 1; }

.message-text {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.5;
}

/* Admin Mesajı Özel Stiller */
.info-link {
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    display: block;
}
.font-bold { font-weight: 700; }

/* Yanıt Alanı */
.reply-section {
    border-top: 1px solid #1f1f1f;
    padding-top: 20px;
}

.quick-reply-box select {
    width: 100%;
}

.reply-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.btn-green {
    background-color: #10b981;
    color: white;
}
.btn-green:hover { background-color: #059669; }


/* --- KATEGORİ VE DÜZENLEME SAYFALARI İÇİN EK CSS --- */

/* Kategori Listesi Kapsayıcı */
.category-list-container {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    min-height: 400px;
}

/* Liste Başlık Satırı */
.cat-header-row {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 10px 15px;
    border-bottom: 1px solid #1f1f1f;
    color: #71717a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 15px;
}

/* Liste Satırı */
.cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #1f1f1f;
    transition: 0.2s;
}
.cat-row:hover { background-color: #121212; }
.cat-row:last-child { border-bottom: none; }

/* Liste İçi Detaylar */
.cat-details h4 { margin: 0; font-size: 14px; font-weight: 700; color: #fff; }
.cat-details span { font-size: 11px; color: #71717a; margin-top: 4px; display: block; }

/* Aksiyon Butonları */
.cat-actions { display: flex; gap: 8px; }

/* Yuvarlak İkon Butonlar (Yeşil/Kırmızı) */
.btn-icon-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; color: #fff; cursor: pointer; transition: 0.2s;
    font-size: 14px;
}
.btn-edit-circle { background-color: #10b981; }
.btn-edit-circle:hover { background-color: #059669; }
.btn-delete-circle { background-color: #ef4444; }
.btn-delete-circle:hover { background-color: #dc2626; }

/* --- DÜZENLEME SAYFASI --- */

/* Düzenleme Form Alanı */
.edit-form-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

/* Tablar */
.tabs-header {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}
.tab-btn {
    background: transparent; border: none; color: #71717a;
    padding: 8px 16px; font-size: 13px; font-weight: 500;
    cursor: pointer; border-radius: 6px;
}
.tab-btn.active { background-color: #27272a; color: #fff; }

/* İzin Tablosu */
.perm-table-wrapper {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
}
.perm-table { width: 100%; border-collapse: collapse; }
.perm-table th {
    text-align: center; color: #71717a; font-size: 12px; font-weight: 500;
    padding-bottom: 20px; border-bottom: 1px solid #1f1f1f;
}
.perm-table th:first-child { text-align: left; }
.perm-table td {
    text-align: center; padding: 15px 0; border-bottom: 1px solid #1f1f1f;
    vertical-align: middle;
}
.perm-table td:first-child { text-align: left; font-weight: 600; color: #fff; }


/* --- HIZLI CEVAPLAR (EDİTÖR & ÖZEL STİLLER) --- */

/* Editör Kapsayıcısı */
.editor-wrapper {
    border: 1px solid #27272a;
    border-radius: 8px;
    background-color: #050505;
    overflow: hidden;
    margin-top: 5px;
}

/* Editör Üst Araç Çubuğu */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background-color: #121212;
    border-bottom: 1px solid #27272a;
    color: #a1a1aa;
}

.editor-toolbar i {
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}
.editor-toolbar i:hover { color: #fff; }

.toolbar-separator {
    width: 1px;
    height: 16px;
    background-color: #27272a;
}

/* Editör Yazı Alanı */
.editor-content {
    width: 100%;
    min-height: 200px;
    background-color: #050505;
    color: #fff;
    padding: 15px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

/* Yeşil Buton (Kaydet/Oluştur) */
.btn-green {
    background-color: #10b981; /* Canlı Yeşil */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-green:hover { background-color: #059669; }

/* Liste Sayfası Kare Butonlar */
.btn-square {
    width: 36px; height: 36px;
    border-radius: 8px; /* Karemsi yuvarlak */
    display: flex; align-items: center; justify-content: center;
    border: none; color: white; cursor: pointer;
    font-size: 16px;
}


/* --- DESTEK AYARLARI SAYFASI --- */

/* Sınırsız Checkbox Kutusu */
.checkbox-input-wrapper {
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
}

.custom-checkbox {
    accent-color: #3b82f6; /* Mavi tik */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Editör Altı Bilgi Notları */
.editor-info-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f1f1f;
    margin-bottom: 20px;
}

.info-col {
    flex: 1;
    font-size: 12px;
    color: #71717a;
    line-height: 1.6;
}

.info-col strong {
    color: #a1a1aa;
    font-weight: 600;
}

/* Toggle Switch Satırı */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 500;
}


/* --- AYARLAR SAYFASI (settings.php) --- */

/* Sınırsız Checkbox Kutusu (Koyu Gri Alan) */
.checkbox-input-wrapper {
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
}

.custom-checkbox {
    accent-color: #3b82f6; /* Mavi tik */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Editör Altındaki Bilgi Notları */
.editor-info-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f1f1f;
    margin-bottom: 20px;
}

.info-col {
    flex: 1;
    font-size: 12px;
    color: #71717a;
    line-height: 1.6;
}

/* Değişkenler için renkler */
.var-highlight { color: #a1a1aa; font-weight: 600; }

/* Toggle Switch Satırı (E-posta ayarı) */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 500;
}


/* --- GENEL AYARLAR MENÜSÜ (GRID SAYFA) --- */

/* Ayarlar Izgarası (2 Sütunlu) */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Eşit Kolon */
    gap: 20px;
    margin-top: 20px;
}

/* Mobilde tek sütuna düşsün */
@media (max-width: 992px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Ayar Kartı */
.settings-card {
    display: flex;
    align-items: center;
    background-color: #0c0c0e; /* Koyu Zemin */
    border: 1px solid #1f1f1f; /* İnce Çizgi */
    border-radius: 16px; /* Yuvarlak Köşeler */
    padding: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.settings-card:hover {
    border-color: #3b82f6; /* Hoverda Mavi Çizgi */
    background-color: #121212; /* Hafif açılma */
    transform: translateY(-2px); /* Hafif yukarı kalkma */
}

/* Kart İkon Kutusu */
.setting-icon-box {
    width: 50px;
    height: 50px;
    background-color: #121212;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #a1a1aa; /* Gri İkon */
    margin-right: 20px;
    border: 1px solid #27272a;
    transition: 0.2s;
    flex-shrink: 0;
}

.settings-card:hover .setting-icon-box {
    color: #fff; /* Hoverda ikon beyaz */
    border-color: #52525b;
}

/* Kart Metinleri */
.setting-info {
    display: flex;
    flex-direction: column;
}

.setting-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 12px;
    color: #71717a; /* Soluk Gri Açıklama */
    line-height: 1.4;
}

/* --- SIDEBAR İTME (PUSH) EFEKTİ --- */

/* Ana içerik geçiş animasyonu */
.main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto; /* Genişlik otomatik ayarlansın */
}

/* Sidebar açıldığında Body'ye eklenecek sınıf ile içeriği itiyoruz */
body.sidebar-open .main-content {
    margin-left: 310px !important; /* 70px (Rail) + 240px (Panel) */
}

/* Mobilde itme olmasın, yine üstüne binsin (Ekran küçük olduğu için) */
@media (max-width: 992px) {
    body.sidebar-open .main-content {
        margin-left: 70px !important; /* Mobilde itme yapma */
    }
}


/* --- GENEL AYARLAR SAYFASI (ÖZEL TASARIM) --- */

/* Kart Yapısı */
.general-card {
    background-color: #0c0c0e; /* Koyu Gri Kart */
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 30px;
}

/* Başlıklar (Website URL, Sunucu Adı vb.) */
.gen-label {
    display: block;
    color: #a1a1aa; /* Silik Gri */
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Ozel Inputlar (Görseldeki gibi Kapkara) */
.gen-input {
    width: 100%;
    background-color: #050505; /* Simsiyah zemin */
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.gen-input:focus {
    border-color: #3b82f6; /* Odaklanınca mavi çizgi */
}

/* Editör Alanı */
.gen-editor {
    border: 1px solid #27272a;
    border-radius: 6px;
    background-color: #050505;
    overflow: hidden;
}

.gen-toolbar {
    background-color: #121212;
    padding: 8px 12px;
    border-bottom: 1px solid #27272a;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #a1a1aa;
}

.gen-toolbar i { cursor: pointer; font-size: 16px; }
.gen-toolbar i:hover { color: #fff; }

.gen-textarea {
    width: 100%;
    min-height: 120px;
    background-color: #050505;
    color: #fff;
    padding: 15px;
    border: none;
    outline: none;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* Site İkonu Alanı (Görseldeki Kutu) */
.icon-upload-area {
    background-color: #121212;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.icon-preview {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-img-large {
    width: 40px; height: 40px; object-fit: contain;
}

.preview-dots {
    color: #52525b; font-size: 18px; letter-spacing: 2px;
}

.preview-img-small {
    width: 16px; height: 16px; border-radius: 2px;
}

.preview-text {
    font-weight: 600; color: #fff; font-size: 14px; margin-left: 10px;
}

/* Kapatma (X) Butonu */
.btn-close-icon {
    background: none; border: none; color: #71717a; cursor: pointer; font-size: 14px;
}
.btn-close-icon:hover { color: #ef4444; }

/* Beyaz Seçim Butonu */
.btn-select-white {
    background-color: #e4e4e7;
    color: #000;
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}
.btn-select-white:hover { background-color: #fff; }


/* --- SİSTEM AYARLARI SAYFASI --- */

/* Sistem Form Etiketleri */
.sys-label {
    display: block;
    color: #71717a;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Sistem Inputları */
.sys-input {
    width: 100%;
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.sys-input:focus { border-color: #3b82f6; }

/* "Sınırsız" Checkbox Kutusu */
.sys-checkbox-wrapper {
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sys-checkbox {
    accent-color: #3b82f6;
    width: 16px; height: 16px; cursor: pointer;
}
.sys-checkbox-text { font-size: 13px; color: #a1a1aa; }

/* Yuvarlak Toggle Listesi (Mavi Tik / Gri Çarpı) */
.toggle-list-group {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    margin-right: 12px;
    transition: 0.2s;
}

/* Aktif (Mavi) Durum */
.toggle-circle.active { background-color: #3b82f6; }

/* Pasif (Gri) Durum */
.toggle-circle.inactive { background-color: #52525b; }

.toggle-text {
    font-size: 14px;
    color: #a1a1aa;
    font-weight: 500;
}

.toggle-item:hover .toggle-text { color: #fff; }

/* Kaydet Butonu (Yeşil) */
.btn-save-green {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-save-green:hover { background-color: #059669; }


/* --- ÖDEME YÖNTEMLERİ SAYFASI --- */

/* Durum Rozetleri (Hap Şeklinde) */
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
    min-width: 70px;
    text-align: center;
}

.badge-red {
    background-color: rgba(239, 68, 68, 0.15); /* Transparan Kırmızı */
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.15); /* Transparan Yeşil */
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Tablo Satırındaki Yeşil Düzenle Butonu */
.btn-edit-green {
    width: 32px;
    height: 32px;
    background-color: #10b981;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}
.btn-edit-green:hover { background-color: #059669; }

/* --- PARA BİRİMLERİ SAYFASI --- */

/* Tablo İçi Metin Butonlar */
.action-text-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-left: 15px;
    display: inline-block;
}

.text-btn-blue { color: #3b82f6; }
.text-btn-blue:hover { text-decoration: underline; }

.text-btn-red { color: #ef4444; }
.text-btn-red:hover { text-decoration: underline; }

/* "Varsayılan olarak ayarla" Linki */
.set-default-link {
    display: block;
    font-size: 11px;
    color: #71717a;
    margin-top: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}
.set-default-link:hover { color: #a1a1aa; }

/* Varsayılan Rozeti (Mavi) - TRY gibi satırlar için */
.badge-default-blue {
    background-color: #3b82f6;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-left: 5px;
}


/* --- SMTP AYARLARI SAYFASI --- */

/* Alt Buton Alanı (Sola ve Sağa Yaslı) */
.smtp-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
}

/* "Bağlantıyı Kontrol Et" Butonu (Koyu Gri) */
.btn-check-connection {
    background-color: #121212; /* Çok koyu gri */
    color: #e4e4e7;
    border: 1px solid #27272a;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-check-connection:hover {
    background-color: #18181b;
    border-color: #3f3f46;
    color: #fff;
}

/* Form Inputları (Genel Ayarlar ile aynı stil) */
.smtp-label {
    display: block;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.smtp-input {
    width: 100%;
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.smtp-input:focus { border-color: #3b82f6; }


/* --- E-POSTA TASARIMLARI SAYFASI (Layout Fix) --- */

/* Bu sayfanın içindeki Grid Yapısı (Sidebar'a dokunmaz) */
.email-settings-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sol Menü 280px, Sağ taraf kalanı doldurur */
    gap: 25px;
    align-items: start;
}

/* Mobilde alt alta düşsün */
@media (max-width: 992px) {
    .email-settings-container {
        grid-template-columns: 1fr;
    }
}

/* Sol Menü Kartı */
.email-sidebar-menu {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 15px;
}

/* Sol Menü Linkleri */
.email-menu-link {
    display: block;
    padding: 12px 15px;
    color: #71717a;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: 0.2s;
}

.email-menu-link:hover {
    background-color: #18181b;
    color: #fff;
}

.email-menu-link.active {
    background-color: #27272a;
    color: #fff;
}

/* CKEDITOR 5 DARK MODE (ÖZEL AYAR) */
.ck-editor__editable {
    min-height: 450px;
    background-color: #050505 !important;
    color: #e4e4e7 !important;
    border: 1px solid #27272a !important;
}

.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused) {
    border-color: #27272a !important;
}

.ck.ck-toolbar {
    background-color: #121212 !important;
    border: 1px solid #27272a !important;
    border-bottom: none !important;
}

.ck.ck-button {
    color: #a1a1aa !important;
    cursor: pointer !important;
}

.ck.ck-button:hover, .ck.ck-button.ck-on {
    background-color: #27272a !important;
    color: #fff !important;
}

/* Dropdown ve diğer beyaz kalan yerleri karartma */
.ck.ck-dropdown__panel, .ck.ck-list {
    background-color: #121212 !important;
    border-color: #27272a !important;
}
.ck.ck-list__item .ck-button:hover {
    background-color: #3b82f6 !important;
}

/* Powered by yazısını gizle */
.ck.ck-branding { display: none !important; }


/* --- MAĞAZA VE KREDİ AYARLARI --- */

/* Gri Liste Elemanları (Toggle'lı satırlar) */
.toggle-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

/* Yuvarlak Toggle İkonu (Tik/Çarpı) */
.toggle-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
    transition: 0.2s;
}

.toggle-icon-circle.active { background-color: #3b82f6; } /* Mavi - Aktif */
.toggle-icon-circle.inactive { background-color: #52525b; } /* Gri - Pasif */

.toggle-label-text {
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 500;
}
.toggle-list-row:hover .toggle-label-text { color: #fff; }

/* İç İçe Girmiş Alanlar (Vergi %, Bonus Kredi Detayları vb.) */
.nested-group {
    background-color: #121212;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Mavi Switch (Toggle Checkbox) */
.blue-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.blue-switch input { opacity: 0; width: 0; height: 0; }
.blue-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #27272a;
    transition: .4s;
    border-radius: 34px;
}
.blue-slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .blue-slider { background-color: #3b82f6; }
input:checked + .blue-slider:before { transform: translateX(18px); }

/* Switch Yanındaki Yazı */
.switch-label-text {
    font-size: 14px;
    color: #a1a1aa;
    margin-left: 10px;
    vertical-align: top;
    line-height: 22px;
}


/* --- LOGLAR SAYFASI --- */

/* Filtreleme Alanı (Arama Solda, Select Sağda) */
.logs-filter-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-end; /* Label ve input hizası */
    margin-bottom: 25px;
}

.search-group {
    flex: 1; /* Sol tarafı doldur */
}

.filter-group {
    width: 250px; /* Sağ taraf sabit genişlik */
}

/* Tablo İçi Veri İkonu (Turuncu Saat) */
.log-data-icon {
    color: #d97706; /* Turuncumsu */
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}
.log-data-icon:hover { color: #b45309; }

/* IP Adresi Stili */
.log-ip {
    font-family: 'Courier New', Courier, monospace;
    color: #a1a1aa;
    font-size: 13px;
}

/* --- KULLANICI EKLE/DÜZENLE SAYFASI --- */

/* Form Kutusu */
.form-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

/* İki Input Yan Yana */
.form-row {
    display: flex;
    gap: 20px;
}
.form-group.half {
    flex: 1;
}

/* Ana Input Stili (Genel Ayarlar ile Aynı Stil) */
.form-control {
    width: 100%;
    background-color: #050505; 
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus {
    border-color: #3b82f6;
}

/* İzinler ve Roller Başlığı */
.form-section {
    background-color: #121212; 
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #27272a;
}

.section-label {
    display: block;
    color: #71717a;
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Rol Tagları */
.tags-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 40px;
}
.tag {
    background-color: #3b82f6;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* İzinler Izgarası (4 Sütun) */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 20px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a1a1aa; /* Pasif yazı rengi */
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.checkbox-item:hover {
    color: #fff;
}

.checkbox-item input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
}

/* Footer Buton Alanı */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

/* Oluştur Butonu (Yeşil) */
.btn-create {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-create:hover { background-color: #059669; }


/* --- ROLLER SAYFASI --- */

/* Rol Adı ve Slug Stili */
.role-info {
    display: flex;
    flex-direction: column;
}
.role-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.role-slug {
    font-size: 12px;
    color: #71717a; /* Sönük gri */
    margin-top: 2px;
}

/* Kod/Textarea Alanı */
.code-area {
    font-family: monospace;
    background-color: #050505 !important;
    color: #a1a1aa !important;
    border: 1px solid #27272a !important;
    padding: 10px !important;
    resize: vertical;
}

/* Yetkili Rolü Checkbox Alanı */
.form-section-clean {
    padding: 15px 0;
    border-top: 1px solid #27272a;
    border-bottom: 1px solid #27272a;
    margin: 20px 0;
}
.form-section-clean label {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a1a1aa;
}



/* --- ÜRÜN RESİM ÖNİZLEME STİLİ --- */
.image-upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border: 2px dashed #3f3f46; /* Varsayılan Çerçeve */
    border-radius: 8px;
    background-color: #121212;
    padding: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border 0.2s;
}

.image-upload-box:hover {
    border-color: #3b82f6;
}

/* Önizleme resmi görünür olduğunda button'ı gizler (JS ile tetiklenir) */
#uploadPlaceholder {
    text-align: center;
    transition: opacity 0.2s;
}

.btn-upload {
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}


/* --- KATEGORİ RESİM YÜKLEME ALANI STİLİ --- */

/* Resim Yükleme Kutusu */
.image-upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    border: 2px dashed #27272a;
    background-color: #050505;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border 0.2s;
}

/* Resim Seç Butonu */
.btn-upload-black {
    background-color: #000;
    color: #fff;
    border: 1px solid #27272a;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.btn-upload-black:hover {
    border-color: #52525b;
}

/* Resim Yüklü Olduğunda */
.image-upload-box.has-image {
    border: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Resim Üzerindeki Karartma (Hover) */
.image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.image-upload-box.has-image:hover .image-overlay {
    opacity: 1; 
}


/* --- SİPARİŞ OLUŞTURMA & GÖRÜNTÜLEME CSS --- */

/* Grid Layouts */
.order-create-grid, .order-view-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Sol geniş, Sağ sabit */
    gap: 20px;
    align-items: start;
}
@media (max-width: 992px) {
    .order-create-grid, .order-view-grid { grid-template-columns: 1fr; }
}

/* Kutu Stilleri */
.card-left, .order-products-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}
.order-summary-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 25px;
}

/* Ürün Satır Başlıkları */
.product-row-header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding: 0 5px;
    color: #52525b;
    font-size: 12px;
    font-weight: 600;
}

/* Ürün Satırı (Inputlar) */
.product-row {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #050505;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1f1f1f;
    margin-bottom: 10px;
}
.input-wrapper.locked {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    font-weight: 600;
    padding-right: 5px;
}

/* Toplam Kutusu */
.total-display-box {
    background-color: #050505;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 600;
}
.total-display-box .currency {
    color: #71717a;
    font-size: 12px;
}
.btn-row-delete {
    background-color: #1f1f1f;
    border: 1px solid #27272a;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-row-delete:hover { background-color: #ef4444; color: white; }

/* Özet Detayları (View Page) */
.summary-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #27272a;
}
.summary-row:last-child { border-bottom: none; }

.s-label { color: #fff; font-weight: 600; }
.s-value { color: #a1a1aa; text-align: right; }

.s-user { display: flex; flex-direction: column; align-items: flex-end; }
.u-main { font-weight: 600; color: #fff; }
.u-sub { font-size: 11px; color: #71717a; margin-top: 2px; }

/* İç Tablolar (Order View) */
.simple-table {
    width: 100%;
    border-collapse: collapse;
}
.simple-table th {
    color: #52525b;
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #1f1f1f;
}
.simple-table td {
    padding: 15px 0;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid #1f1f1f;
}
.simple-table tr:last-child td { border-bottom: none; }

/* --- TOPLU İNDİRİM SAYFASI (Tree View & Date Picker) --- */

/* Tarih Grubu (Input + Switch) */
.date-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.date-input-wrapper {
    position: relative;
    flex: 1;
}
.date-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
}
.pl-40 { padding-left: 40px !important; } /* Inputu ikon için içeri iter */

/* "Asla" Switch Alanı */
.asla-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.asla-switch .label-text {
    color: #a1a1aa;
    font-size: 14px;
}
/* Koyu Switch Slider */
.slider.round-dark {
    background-color: #27272a;
    border-radius: 34px;
}
.round-dark:before {
    background-color: #71717a;
    border-radius: 50%;
}
input:checked + .round-dark {
    background-color: #3b82f6;
}

/* Tree View Stilleri */
.tree-search {
    width: 300px;
    max-width: 100%;
}
.tree-view-container {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 10px;
}

/* Tree Node Elemanları */
.node-content, .tree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.1s;
    user-select: none;
}
.node-content:hover, .tree-item:hover {
    background-color: #18181b;
}

/* Checkbox ve İkonlar */
.node-checkbox { accent-color: #3b82f6; cursor: pointer; }
.btn-collapse { background: none; border: none; color: #71717a; cursor: pointer; font-size: 14px; padding: 0; }
.node-icon, .item-icon { color: #a1a1aa; font-size: 18px; }
.node-text, .item-text { color: #fff; font-size: 14px; font-weight: 500; }

/* Çocuk Öğeler (Girinti) */
.node-children {
    padding-left: 30px;
    border-left: 1px solid #27272a;
    margin-left: 15px;
    padding-top: 5px;
    margin-top: 5px;
}

/* Kaydet Barı */
.save-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1f1f1f;
}


/* --- TICKET GÖRÜNTÜLEME ÖZEL STİLLER --- */

/* Genel Grid Yapısı */
.ticket-view-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Sol sidebar sabit, sağ geniş */
    gap: 25px;
    align-items: start;
}

/* Sol Sidebar ve Kartlar */
.info-card, .action-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
}

/* Detay Satırları */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #1f1f1f;
    font-size: 13px;
}
.info-row.border-none { border-bottom: none; }
.info-row .label { color: #fff; font-weight: 600; }
.info-row .value { color: #a1a1aa; text-align: right; }

/* Kullanıcı Detayları */
.value-user { display: flex; flex-direction: column; align-items: flex-end; }
.u-main { color: #3b82f6; font-weight: 600; }
.time-ago { font-size: 11px; color: #71717a; margin-top: 2px; }

/* Aksiyon Butonları */
.btn-red-outline {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}
.btn-yellow { background-color: #eab308; color: #000; }
.btn-yellow:hover { background-color: #ca8a04; }

/* Sohbet Alanı */
.ticket-chat-area {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 25px;
}
.chat-message {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #1f1f1f;
    padding-bottom: 25px;
}
.chat-avatar { width: 40px; height: 40px; border-radius: 6px; }
.msg-author { color: #fff; font-weight: 700; font-size: 14px; margin-right: 10px; }
.msg-author.text-blue { color: #3b82f6; }
.message-text { color: #a1a1aa; font-size: 14px; line-height: 1.5; }

/* Yanıt Alanı */
.reply-section { border-top: 1px solid #1f1f1f; padding-top: 20px; }
.editor-textarea { /* Mevcut CKEditor/Textarea stilini kullanır */ }


/* --- LOGLAR SAYFASI (logs/index.php) --- */

/* Filtreleme Alanı (Arama Solda, Select Sağda) */
.logs-filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Label ile input hizası */
    gap: 20px;
    margin-bottom: 25px;
}

.logs-search-group {
    flex: 1; /* Sol tarafı genişlet */
}

.logs-select-group {
    width: 250px; /* Sağ taraf sabit */
}

/* Veri Sütunu İkonu (Turuncu Saat) */
.icon-data-history {
    font-size: 20px;
    color: #d97706; /* Turuncumsu (Amber-600) */
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-data-history:hover { color: #b45309; }

/* IP Adresi Stili */
.text-ip {
    font-family: 'Courier New', Courier, monospace;
    color: #a1a1aa;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* İşlem ve ID Stili */
.log-action-title {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    display: block;
}
.log-action-id {
    color: #71717a;
    font-size: 12px;
    margin-top: 3px;
    display: block;
}


/* --- KATEGORİ EKLE/DÜZENLE SAYFASI --- */

/* Edit Kartı */
.cat-edit-card {
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

/* Tab Başlıkları */
.cat-tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1f1f1f;
    padding-bottom: 10px;
}
.cat-tab-btn {
    background: none;
    border: none;
    color: #71717a;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.2s;
}
.cat-tab-btn.active {
    color: #fff;
    background-color: #1f1f1f;
}

/* İzin Tablosu */
.cat-perm-table {
    width: 100%;
    border-collapse: collapse;
}
.cat-perm-table th {
    text-align: center;
    color: #71717a;
    font-size: 12px;
    padding: 15px;
    border-bottom: 1px solid #1f1f1f;
    font-weight: 600;
}
.cat-perm-table th:first-child { text-align: left; }

.cat-perm-table td {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #1f1f1f;
    color: #fff;
    vertical-align: middle;
}
.cat-perm-table td:first-child { text-align: left; font-weight: 600; font-size: 14px; }

/* Switch CSS (Daha önce eklediysen tekrar ekleme) */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #27272a; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: #fff; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #3b82f6; }
input:checked + .slider:before { transform: translateX(18px); }

/* Oluştur Butonu (Yeşil) */
.btn-create-green {
    background-color: #10b981;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-create-green:hover { background-color: #059669; }

/* --- LOGIN SAYFASI --- */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #09090b; /* En koyu zemin */
}

.login-card {
    width: 100%;
    max-width: 400px;
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 60px;
    height: 60px;
    background-color: #3b82f6; /* Logo Mavi */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 15px auto;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 14px;
    color: #71717a;
}

/* Input Grubu (Mevcut stilleri kullanır ama özelleştirilmiş) */
.login-form-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    background-color: #121212;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.login-input:focus {
    border-color: #3b82f6;
    background-color: #000;
}

/* Giriş Butonu */
.btn-login {
    width: 100%;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}
.btn-login:hover {
    background-color: #2563eb;
}

/* Hata Mesajı */
.login-alert {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}


/* --- LOGIN SAYFASI ORTALAMA FİX --- */

/* Sayfa kenar boşluklarını sıfırla */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* Kapsayıcıyı tam ekran yap ve ortala */
.login-wrapper {
    position: fixed; /* Sayfaya sabitle */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;       /* Flexbox aç */
    align-items: center; /* Dikey ortala */
    justify-content: center; /* Yatay ortala */
    background-color: #09090b;
    z-index: 1000; /* En üstte dur */
}

/* Kartın kendisi */
.login-card {
    width: 100%;
    max-width: 400px;
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7); /* Gölgeyi biraz güçlendirdim */
}

/* Diğer login stilleri (Logo, input vb.) aynı kalabilir */


/* --- TOPBAR (ÜST BAR) TASARIMI - GÜNCELLENMİŞ --- */

.topbar {
    height: 70px;
    background-color: #0c0c0e; /* Koyu Kart Rengi */
    border-bottom: 1px solid #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky; /* YAPIŞKAN */
    top: 0;           /* EN TEPE */
    z-index: 999;     /* İçeriğin üstünde kalsın */
    transition: 0.3s;
    width: 100%;
}

/* Sol Taraf (Breadcrumb & Toggle) */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-sidebar-toggle {
    background: transparent;
    border: 1px solid #27272a;
    color: #a1a1aa;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 18px;
}
.btn-sidebar-toggle:hover {
    border-color: #fff;
    color: #fff;
}

/* Sağ Taraf (İkonlar ve Profil) */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    font-size: 20px;
}
.topbar-icon-btn:hover {
    background-color: #1f1f1f;
    color: #fff;
}

/* Bildirim Noktası */
.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #0c0c0e;
}

/* --- KULLANICI PROFİL DROPDOWN --- */

.user-profile-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    position: relative; /* Dropdown buna göre konumlanır */
    margin-left: 10px;
    border: 1px solid transparent;
}

.user-profile-dropdown:hover, .user-profile-dropdown.active {
    background-color: #121212;
    border-color: #1f1f1f;
}

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

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.user-role {
    font-size: 11px;
    color: #71717a;
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #27272a;
}

/* Açılır Menü (Dropdown) */
.profile-menu-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background-color: #0c0c0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.user-profile-dropdown.active .profile-menu-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.2s;
}

.menu-link:hover {
    background-color: #1f1f1f;
    color: #fff;
}

.menu-link.danger { color: #ef4444; }
.menu-link.danger:hover { background-color: rgba(239, 68, 68, 0.1); }

.menu-divider {
    height: 1px;
    background-color: #1f1f1f;
    margin: 6px 0;
}


/* =========================================
   🎯 MOBİL RESPONSIVE TASARIM - TABLET
   768px - 992px arası cihazlar için
   ========================================= */

@media (max-width: 992px) and (min-width: 769px) {
    /* İçerik boşluklarını optimize et */
    .content-wrapper {
        padding: 20px 25px;
    }
    
    /* Grid yapıları 2 sütun */
    .stats-grid, .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablolarda yatay scroll */
    .table-responsive, .table-card {
        overflow-x: auto;
    }
}

/* =========================================
   📱 MOBİL RESPONSIVE TASARIM - PHONE
   992px ve altı cihazlar (ana mobil)
   ========================================= */

@media (max-width: 992px) {
    
    /* ========= 1. SIDEBAR MOBİL YAPISI ========= */
    
    /* Sidebar wrapper overlay + slide-in */
    .sidebar-wrapper {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(0, 0, 0, 0.7);
    }
    
    /* Sidebar açıldığında */
    .sidebar-wrapper.mobile-active {
        left: 0;
    }
    
    /* İkon rail mobilde daralsın */
    .icon-rail {
        width: 280px;
        background: var(--bg-rail);
        box-shadow: 0 0 30px rgba(0,0,0,0.5);
    }
    
    /* Submenu panel mobilde kapat */
    .submenu-panel {
        display: none !important;
    }
    
    /* ========= 2. TOPBAR MOBİL ========= */
    
    .topbar {
        padding: 12px 15px;
        border-bottom: 1px solid #27272a;
    }
    
    /* Breadcrumb küçült */
    .breadcrumb {
        font-size: 12px;
        gap: 5px;
    }
    
    .breadcrumb-item {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Arama kutusunu gizle */
    .search-input-wrapper {
        display: none;
    }
    
    /* Mobil menü butonu göster */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* ========= 3. ANA İÇERİK VE WRAPPER ========= */
    
    /* Main content tam genişlik */
    .main-content {
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        padding: 0;
    }
    
    /* İçerik boşlukları */
    .content-wrapper {
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* ========= 4. SAYFA BAŞLIKLARI VE HEADER ========= */
    
    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .header-left, .header-right {
        width: 100%;
    }
    
    .header-actions, .header-actions-text {
        width: 100%;
        justify-content: stretch;
    }
    
    .header-actions button,
    .header-actions a {
        flex: 1;
        justify-content: center;
    }
    
    /* ========= 5. TÜM GRID YAPILARI TEK SÜTUN ========= */
    
    .role-grid,
    .stats-grid,
    .list-grid,
    .settings-grid,
    .view-grid,
    .order-create-grid,
    .order-view-grid,
    .ticket-view-grid,
    .email-settings-container,
    .permissions-grid,
    .chart-grid,
    .dashboard-grid,
    .payment-grid,
    .invoice-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100%;
    }
    
    /* ========= 6. KARTLAR ========= */
    
    .card, .chart-card, .list-card, .info-card,
    .table-card, .form-card, .action-card,
    .stat-card, .settings-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-bottom: 15px;
        box-sizing: border-box !important;
    }
    
    .chart-card {
        height: auto !important;
        min-height: 300px;
    }
    
    /* ========= 7. TABLOLAR - RESPONSIVE ========= */
    
    /* Tablo wrapper scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .custom-table {
        min-width: 650px;
        font-size: 13px;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* İşlem butonları mobilde daha küçük */
    .action-buttons {
        gap: 5px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    /* ========= 8. FORMLAR ========= */
    
    /* Form row alt alta dizilsin */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Form kontrolleri */
    .form-control {
        font-size: 16px; /* iOS zoom'u engelle */
        padding: 12px;
    }
    
    /* Form section */
    .form-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    /* İzinler grid'i 2 sütun */
    .permissions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .checkbox-item {
        font-size: 12px;
        gap: 8px;
    }
    
    /* Form footer butonları */
    .form-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-footer button,
    .form-footer a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .form-submit-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .form-submit-row button,
    .form-submit-row a {
        width: 100%;
        justify-content: center;
    }
    
    /* ========= 9. BUTONLAR ========= */
    
    .btn-primary, .btn-secondary, .btn-create,
    .btn-danger, .btn-success, .btn-light {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    /* ========= 10. MODAL ========= */
    
    .modal-content {
        width: 90% !important;
        max-width: 400px;
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    /* ========= 11. POPUP MENÜLER ========= */
    
    .sidebar-popup-menu {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 320px;
        z-index: 10002 !important;
    }
    
    #sidebarNotifMenu {
        width: 90% !important;
        max-width: 350px;
    }
    
    /* ========= 12. DASHBOARD ÖZEL ========= */
    
    /* Stat kartları */
    .stat-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .stat-item .value {
        font-size: 13px;
    }
    
    /* Stats box scroll */
    .stats-box {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Chart area */
    .chart-area {
        min-height: 250px;
    }
    
    /* ========= 13. AYARLAR SAYFASI ========= */
    
    .settings-card {
        padding: 15px;
    }
    
    .setting-icon-box {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .setting-title {
        font-size: 14px;
    }
    
    .setting-desc {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* ========= 14. SİPARİŞ/ÜRÜN DETAY ========= */
    
    .order-summary, .product-summary {
        padding: 15px;
    }
    
    .price-row {
        flex-direction: column;
        gap: 10px;
    }
    
    /* ========= 15. TABAN YAKALAMA (Overflow Engelleme) ========= */
    
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Tüm elemanları zorla sığdır */
    * {
        max-width: 100vw !important;
    }
    
    /* Resimler */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Pre ve code blokları */
    pre, code {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    /* ========= 16. SEKMEselectors (TABS) ========= */
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 5px;
        margin-bottom: 20px;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* ========= 17. LOGIN SAYFASI ========= */
    
    .login-card {
        width: 90%;
        max-width: 400px;
        padding: 25px 20px;
    }
    
    .login-card h2 {
        font-size: 22px;
    }
    
    /* ========= 18. KULLANICI DETAY ========= */
    
    .user-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-avatar {
        margin: 0 auto;
    }
    
    /* ========= 19. BADGE VE TAGS ========= */
    
    .badge, .tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* ========= 20. BREADCRUMB GİZLE (Mobilde fazla yer kaplar) ========= */
    
    @media (max-width: 576px) {
        .breadcrumb a:not(:last-child) {
            display: none;
        }
        
        .breadcrumb .divider:not(:last-of-type) {
            display: none;
        }
        
        .page-title {
            font-size: 18px;
        }
    }
}

/* =========================================
   📲 KÜÇÜK MOBİL (Extra Small Devices)
   576px ve altı
   ========================================= */

@media (max-width: 576px) {
    
    /* İçerik boşlukları minimal */
    .content-wrapper {
        padding: 10px !important;
    }
    
    /* Kartlar */
    .card, .chart-card, .list-card {
        padding: 12px !important;
        border-radius: 8px;
    }
    
    /* Butonlar daha büyük (dokunma için) */
    .btn-primary, .btn-secondary, .btn-create {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* Form kontroller */
    .form-control {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    /* Tablo minimum genişliği */
    .custom-table {
        min-width: 500px;
    }
    
    /* Permissions grid tek sütun */
    .permissions-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Modal daha dar */
    .modal-content {
        width: 95% !important;
        padding: 25px 15px;
    }
    
    /* Topbar daha minimal */
    .topbar {
        padding: 10px 12px;
    }
    
    .breadcrumb {
        font-size: 11px;
    }
}

/* =========================================
   🎯 DOKUNMA ALANLARINI BÜYÜT (Touch Target)
   ========================================= */

@media (pointer: coarse) {
    /* Tüm tıklanabilir elemanlar en az 44x44px olmalı (Apple HIG) */
    button, a, .btn, .rail-btn, input[type="checkbox"],
    input[type="radio"], .tab, .sub-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Tablo satırları daha büyük */
    .custom-table td {
        padding: 12px 10px;
    }
}

/* =========================================
   🌙 DARK MODE İYİLEŞTİRMELERİ
   ========================================= */

@media (prefers-color-scheme: dark) {
    /* Zaten dark theme kullanıyoruz, ek ayar gerekmez */
    /* Ancak kontrast iyileştirmeleri yapabiliriz */
    :root {
        --text-main: #ffffff;
        --text-muted: #a8a8a8;
    }
}

/* =========================================
   ♿ ERİŞİLEBİLİRLİK (Accessibility)
   ========================================= */

/* Focus indicator görünür olsun */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Yüksek kontrast modu */
@media (prefers-contrast: high) {
    * {
        border-color: #ffffff !important;
    }
    
    .text-muted {
        color: #d4d4d4 !important;
    }
}

/* =========================================
   🔧 SON DÜZELTMELER VE YEDEK KURALLAR
   ========================================= */

/* Flexbox ve Grid yedek kuralları */
@supports not (display: grid) {
    .settings-grid, .stats-grid {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Sticky position desteği yoksa */
@supports not (position: sticky) {
    .topbar {
        position: relative;
    }
}
