/* =========================================================
   ADMIN PANEL DARK / LIGHT FINAL OVERRIDE
   Dosya: /admin/assets/css/admin-panel-theme.css
   app.min.css'ten SONRA çağrılmalı.
   Genel buton renklerine dokunmaz.
   Sadece dark modda beyaz kalan .btn-soft-secondary geri butonunu düzeltir.
========================================================= */

/* LIGHT MOD: Temaya karışma */
html[data-theme="light"],
html[data-bs-theme="light"],
html[data-panel-theme="light"],
html[data-theme="system"] {
    color-scheme: light;
}

/* DARK MOD VARIABLES */
html[data-theme="dark"],
html[data-bs-theme="dark"],
html.admin-theme-dark {
    color-scheme: dark;

    --admin-bg: #070b12;
    --admin-bg-2: #0b111c;
    --admin-card: #111827;
    --admin-card-2: #151e2e;
    --admin-sidebar: #0f1724;
    --admin-sidebar-2: #111b2b;
    --admin-topbar: #0b111c;

    --admin-text: #f3f6fb;
    --admin-text-soft: #c8d1e3;
    --admin-text-muted: #8d99ad;

    --admin-border: rgba(255,255,255,.09);
    --admin-border-soft: rgba(255,255,255,.06);

    --admin-input: #0b1220;
    --admin-input-border: rgba(255,255,255,.13);

    --admin-shadow: 0 18px 45px rgba(0,0,0,.35);
}

/* Ana zemin */
html[data-theme="dark"] body,
html[data-bs-theme="dark"] body,
html.admin-theme-dark body {
    background: var(--admin-bg) !important;
    color: var(--admin-text) !important;
}

/* Layout genel */
html[data-theme="dark"] #layout-wrapper,
html[data-theme="dark"] .app-wrapper,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .content,
html[data-theme="dark"] .container-fluid,
html[data-bs-theme="dark"] #layout-wrapper,
html[data-bs-theme="dark"] .app-wrapper,
html[data-bs-theme="dark"] .main-content,
html[data-bs-theme="dark"] .page-content,
html[data-bs-theme="dark"] .content,
html[data-bs-theme="dark"] .container-fluid,
html.admin-theme-dark #layout-wrapper,
html.admin-theme-dark .app-wrapper,
html.admin-theme-dark .main-content,
html.admin-theme-dark .page-content,
html.admin-theme-dark .content,
html.admin-theme-dark .container-fluid {
    background: var(--admin-bg) !important;
    color: var(--admin-text) !important;
}

/* Sol sidebar */
html[data-theme="dark"] .app-menu,
html[data-theme="dark"] .navbar-menu,
html[data-theme="dark"] .vertical-menu,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sidebar-wrapper,
html[data-theme="dark"] .main-sidebar,
html[data-theme="dark"] .left-side-menu,
html[data-bs-theme="dark"] .app-menu,
html[data-bs-theme="dark"] .navbar-menu,
html[data-bs-theme="dark"] .vertical-menu,
html[data-bs-theme="dark"] .sidebar,
html[data-bs-theme="dark"] .sidebar-wrapper,
html[data-bs-theme="dark"] .main-sidebar,
html[data-bs-theme="dark"] .left-side-menu,
html.admin-theme-dark .app-menu,
html.admin-theme-dark .navbar-menu,
html.admin-theme-dark .vertical-menu,
html.admin-theme-dark .sidebar,
html.admin-theme-dark .sidebar-wrapper,
html.admin-theme-dark .main-sidebar,
html.admin-theme-dark .left-side-menu {
    background: var(--admin-sidebar) !important;
    border-right: 1px solid var(--admin-border) !important;
    box-shadow: none !important;
}

/* Sidebar logo alanı */
html[data-theme="dark"] .navbar-brand-box,
html[data-theme="dark"] .logo-box,
html[data-theme="dark"] .sidebar-logo,
html[data-theme="dark"] .app-menu .logo,
html[data-theme="dark"] .vertical-menu .logo,
html[data-bs-theme="dark"] .navbar-brand-box,
html[data-bs-theme="dark"] .logo-box,
html[data-bs-theme="dark"] .sidebar-logo,
html[data-bs-theme="dark"] .app-menu .logo,
html[data-bs-theme="dark"] .vertical-menu .logo,
html.admin-theme-dark .navbar-brand-box,
html.admin-theme-dark .logo-box,
html.admin-theme-dark .sidebar-logo,
html.admin-theme-dark .app-menu .logo,
html.admin-theme-dark .vertical-menu .logo {
    background: var(--admin-sidebar) !important;
    border-bottom: 1px solid var(--admin-border-soft) !important;
}

/* Sidebar yazılar */
html[data-theme="dark"] .app-menu a,
html[data-theme="dark"] .navbar-menu a,
html[data-theme="dark"] .vertical-menu a,
html[data-theme="dark"] .sidebar a,
html[data-theme="dark"] .menu-link,
html[data-theme="dark"] .nav-link,
html[data-bs-theme="dark"] .app-menu a,
html[data-bs-theme="dark"] .navbar-menu a,
html[data-bs-theme="dark"] .vertical-menu a,
html[data-bs-theme="dark"] .sidebar a,
html[data-bs-theme="dark"] .menu-link,
html[data-bs-theme="dark"] .nav-link,
html.admin-theme-dark .app-menu a,
html.admin-theme-dark .navbar-menu a,
html.admin-theme-dark .vertical-menu a,
html.admin-theme-dark .sidebar a,
html.admin-theme-dark .menu-link,
html.admin-theme-dark .nav-link {
    color: var(--admin-text-soft) !important;
}

/* Sidebar ikonlar */
html[data-theme="dark"] .app-menu i,
html[data-theme="dark"] .navbar-menu i,
html[data-theme="dark"] .vertical-menu i,
html[data-theme="dark"] .sidebar i,
html[data-theme="dark"] .menu-icon,
html[data-bs-theme="dark"] .app-menu i,
html[data-bs-theme="dark"] .navbar-menu i,
html[data-bs-theme="dark"] .vertical-menu i,
html[data-bs-theme="dark"] .sidebar i,
html[data-bs-theme="dark"] .menu-icon,
html.admin-theme-dark .app-menu i,
html.admin-theme-dark .navbar-menu i,
html.admin-theme-dark .vertical-menu i,
html.admin-theme-dark .sidebar i,
html.admin-theme-dark .menu-icon {
    color: var(--admin-text-soft) !important;
}

/* Sidebar başlıkları */
html[data-theme="dark"] .menu-title,
html[data-theme="dark"] .navbar-menu .menu-title,
html[data-theme="dark"] .vertical-menu .menu-title,
html[data-theme="dark"] .sidebar .menu-title,
html[data-bs-theme="dark"] .menu-title,
html[data-bs-theme="dark"] .navbar-menu .menu-title,
html[data-bs-theme="dark"] .vertical-menu .menu-title,
html[data-bs-theme="dark"] .sidebar .menu-title,
html.admin-theme-dark .menu-title,
html.admin-theme-dark .navbar-menu .menu-title,
html.admin-theme-dark .vertical-menu .menu-title,
html.admin-theme-dark .sidebar .menu-title {
    color: var(--admin-text-muted) !important;
    opacity: .8 !important;
}

/* Sidebar hover */
html[data-theme="dark"] .app-menu a:hover,
html[data-theme="dark"] .navbar-menu a:hover,
html[data-theme="dark"] .vertical-menu a:hover,
html[data-theme="dark"] .sidebar a:hover,
html[data-theme="dark"] .menu-link:hover,
html[data-bs-theme="dark"] .app-menu a:hover,
html[data-bs-theme="dark"] .navbar-menu a:hover,
html[data-bs-theme="dark"] .vertical-menu a:hover,
html[data-bs-theme="dark"] .sidebar a:hover,
html[data-bs-theme="dark"] .menu-link:hover,
html.admin-theme-dark .app-menu a:hover,
html.admin-theme-dark .navbar-menu a:hover,
html.admin-theme-dark .vertical-menu a:hover,
html.admin-theme-dark .sidebar a:hover,
html.admin-theme-dark .menu-link:hover {
    background: rgba(255,255,255,.045) !important;
    color: #fff !important;
}

/* Aktif menü */
html[data-theme="dark"] .app-menu .active,
html[data-theme="dark"] .navbar-menu .active,
html[data-theme="dark"] .vertical-menu .active,
html[data-theme="dark"] .sidebar .active,
html[data-theme="dark"] .menu-link.active,
html[data-bs-theme="dark"] .app-menu .active,
html[data-bs-theme="dark"] .navbar-menu .active,
html[data-bs-theme="dark"] .vertical-menu .active,
html[data-bs-theme="dark"] .sidebar .active,
html[data-bs-theme="dark"] .menu-link.active,
html.admin-theme-dark .app-menu .active,
html.admin-theme-dark .navbar-menu .active,
html.admin-theme-dark .vertical-menu .active,
html.admin-theme-dark .sidebar .active,
html.admin-theme-dark .menu-link.active {
    color: #fff !important;
}

/* Üst bar */
html[data-theme="dark"] .header,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .topbar-wrapper,
html[data-theme="dark"] .navbar-header,
html[data-theme="dark"] #page-topbar,
html[data-theme="dark"] .page-topbar,
html[data-bs-theme="dark"] .header,
html[data-bs-theme="dark"] .topbar,
html[data-bs-theme="dark"] .topbar-wrapper,
html[data-bs-theme="dark"] .navbar-header,
html[data-bs-theme="dark"] #page-topbar,
html[data-bs-theme="dark"] .page-topbar,
html.admin-theme-dark .header,
html.admin-theme-dark .topbar,
html.admin-theme-dark .topbar-wrapper,
html.admin-theme-dark .navbar-header,
html.admin-theme-dark #page-topbar,
html.admin-theme-dark .page-topbar {
    background: var(--admin-topbar) !important;
    border-bottom: 1px solid var(--admin-border) !important;
    color: var(--admin-text) !important;
    box-shadow: none !important;
}

/* Üst bar iç elemanlar */
html[data-theme="dark"] .navbar-header .dropdown,
html[data-theme="dark"] .navbar-header .dropdown-toggle,
html[data-theme="dark"] .navbar-header .header-item,
html[data-theme="dark"] .topbar .dropdown-toggle,
html[data-theme="dark"] .topbar .header-item,
html[data-bs-theme="dark"] .navbar-header .dropdown,
html[data-bs-theme="dark"] .navbar-header .dropdown-toggle,
html[data-bs-theme="dark"] .navbar-header .header-item,
html[data-bs-theme="dark"] .topbar .dropdown-toggle,
html[data-bs-theme="dark"] .topbar .header-item,
html.admin-theme-dark .navbar-header .dropdown,
html.admin-theme-dark .navbar-header .dropdown-toggle,
html.admin-theme-dark .navbar-header .header-item,
html.admin-theme-dark .topbar .dropdown-toggle,
html.admin-theme-dark .topbar .header-item {
    background: transparent !important;
    color: var(--admin-text-soft) !important;
}

/* Breadcrumb */
html[data-theme="dark"] .main-breadcrumb,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .breadcrumb-item a,
html[data-theme="dark"] .breadcrumb-title,
html[data-bs-theme="dark"] .main-breadcrumb,
html[data-bs-theme="dark"] .breadcrumb,
html[data-bs-theme="dark"] .breadcrumb-item,
html[data-bs-theme="dark"] .breadcrumb-item a,
html[data-bs-theme="dark"] .breadcrumb-title,
html.admin-theme-dark .main-breadcrumb,
html.admin-theme-dark .breadcrumb,
html.admin-theme-dark .breadcrumb-item,
html.admin-theme-dark .breadcrumb-item a,
html.admin-theme-dark .breadcrumb-title {
    color: var(--admin-text-soft) !important;
}

html[data-theme="dark"] .breadcrumb-item.active,
html[data-bs-theme="dark"] .breadcrumb-item.active,
html.admin-theme-dark .breadcrumb-item.active {
    color: var(--admin-text) !important;
}

/* Kartlar */
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-h-100,
html[data-theme="dark"] .box,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .content-card,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .card-h-100,
html[data-bs-theme="dark"] .box,
html[data-bs-theme="dark"] .panel,
html[data-bs-theme="dark"] .widget,
html[data-bs-theme="dark"] .content-card,
html.admin-theme-dark .card,
html.admin-theme-dark .card-h-100,
html.admin-theme-dark .box,
html.admin-theme-dark .panel,
html.admin-theme-dark .widget,
html.admin-theme-dark .content-card {
    background: var(--admin-card) !important;
    border: 1px solid var(--admin-border) !important;
    color: var(--admin-text) !important;
    box-shadow: var(--admin-shadow) !important;
}

/* Kart başlıkları */
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer,
html.admin-theme-dark .card-header,
html.admin-theme-dark .card-footer {
    background: var(--admin-card) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}

html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card h1,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4,
html[data-theme="dark"] .card h5,
html[data-theme="dark"] .card h6,
html[data-bs-theme="dark"] .card-title,
html[data-bs-theme="dark"] .card h1,
html[data-bs-theme="dark"] .card h2,
html[data-bs-theme="dark"] .card h3,
html[data-bs-theme="dark"] .card h4,
html[data-bs-theme="dark"] .card h5,
html[data-bs-theme="dark"] .card h6,
html.admin-theme-dark .card-title,
html.admin-theme-dark .card h1,
html.admin-theme-dark .card h2,
html.admin-theme-dark .card h3,
html.admin-theme-dark .card h4,
html.admin-theme-dark .card h5,
html.admin-theme-dark .card h6 {
    color: var(--admin-text) !important;
}

/* İç sayfa hero/header */
html[data-theme="dark"] .page-title-box,
html[data-theme="dark"] .page-header,
html[data-theme="dark"] .content-header,
html[data-theme="dark"] .admin-page-header,
html[data-theme="dark"] .list-header,
html[data-theme="dark"] .edit-header,
html[data-theme="dark"] .form-header,
html[data-theme="dark"] body .glow-header.header-bar,
html[data-theme="dark"] body .header-bar,
html[data-bs-theme="dark"] .page-title-box,
html[data-bs-theme="dark"] .page-header,
html[data-bs-theme="dark"] .content-header,
html[data-bs-theme="dark"] .admin-page-header,
html[data-bs-theme="dark"] .list-header,
html[data-bs-theme="dark"] .edit-header,
html[data-bs-theme="dark"] .form-header,
html[data-bs-theme="dark"] body .glow-header.header-bar,
html[data-bs-theme="dark"] body .header-bar,
html.admin-theme-dark .page-title-box,
html.admin-theme-dark .page-header,
html.admin-theme-dark .content-header,
html.admin-theme-dark .admin-page-header,
html.admin-theme-dark .list-header,
html.admin-theme-dark .edit-header,
html.admin-theme-dark .form-header,
html.admin-theme-dark body .glow-header.header-bar,
html.admin-theme-dark body .header-bar {
    background: linear-gradient(135deg, #111827 0%, #172235 55%, #0f172a 100%) !important;
    border: 1px solid var(--admin-border) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.32) !important;
    color: var(--admin-text) !important;
}

/* İç sayfa header yazıları */
html[data-theme="dark"] .page-title-box *,
html[data-theme="dark"] .page-header *,
html[data-theme="dark"] .content-header *,
html[data-theme="dark"] .admin-page-header *,
html[data-theme="dark"] .list-header *,
html[data-theme="dark"] .edit-header *,
html[data-theme="dark"] .form-header *,
html[data-theme="dark"] body .glow-header.header-bar *,
html[data-theme="dark"] body .header-bar *,
html[data-bs-theme="dark"] .page-title-box *,
html[data-bs-theme="dark"] .page-header *,
html[data-bs-theme="dark"] .content-header *,
html[data-bs-theme="dark"] .admin-page-header *,
html[data-bs-theme="dark"] .list-header *,
html[data-bs-theme="dark"] .edit-header *,
html[data-bs-theme="dark"] .form-header *,
html[data-bs-theme="dark"] body .glow-header.header-bar *,
html[data-bs-theme="dark"] body .header-bar *,
html.admin-theme-dark .page-title-box *,
html.admin-theme-dark .page-header *,
html.admin-theme-dark .content-header *,
html.admin-theme-dark .admin-page-header *,
html.admin-theme-dark .list-header *,
html.admin-theme-dark .edit-header *,
html.admin-theme-dark .form-header *,
html.admin-theme-dark body .glow-header.header-bar *,
html.admin-theme-dark body .header-bar * {
    color: var(--admin-text) !important;
}

html[data-theme="dark"] body .glow-header.header-bar .muted,
html[data-theme="dark"] body .header-bar .muted,
html[data-bs-theme="dark"] body .glow-header.header-bar .muted,
html[data-bs-theme="dark"] body .header-bar .muted,
html.admin-theme-dark body .glow-header.header-bar .muted,
html.admin-theme-dark body .header-bar .muted {
    color: #b9c4d6 !important;
}

/* Header ikon kutusu */
html[data-theme="dark"] body .header-icon,
html[data-bs-theme="dark"] body .header-icon,
html.admin-theme-dark body .header-icon {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    color: #8fb3ff !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.32) !important;
}

html[data-theme="dark"] body .header-icon i,
html[data-bs-theme="dark"] body .header-icon i,
html.admin-theme-dark body .header-icon i {
    color: #8fb3ff !important;
}

/* Form alanları */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] input,
html[data-bs-theme="dark"] textarea,
html[data-bs-theme="dark"] select,
html.admin-theme-dark .form-control,
html.admin-theme-dark .form-select,
html.admin-theme-dark input,
html.admin-theme-dark textarea,
html.admin-theme-dark select {
    background-color: var(--admin-input) !important;
    border-color: var(--admin-input-border) !important;
    color: var(--admin-text) !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus,
html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus,
html[data-bs-theme="dark"] input:focus,
html[data-bs-theme="dark"] textarea:focus,
html[data-bs-theme="dark"] select:focus,
html.admin-theme-dark .form-control:focus,
html.admin-theme-dark .form-select:focus,
html.admin-theme-dark input:focus,
html.admin-theme-dark textarea:focus,
html.admin-theme-dark select:focus {
    background-color: #0d1626 !important;
    border-color: rgba(99,102,241,.65) !important;
    color: var(--admin-text) !important;
    box-shadow: 0 0 0 .18rem rgba(99,102,241,.15) !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-bs-theme="dark"] .form-control::placeholder,
html[data-bs-theme="dark"] textarea::placeholder,
html[data-bs-theme="dark"] input::placeholder,
html.admin-theme-dark .form-control::placeholder,
html.admin-theme-dark textarea::placeholder,
html.admin-theme-dark input::placeholder {
    color: var(--admin-text-muted) !important;
}

/* Label ve yardımcı yazılar */
html[data-theme="dark"] label,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] small,
html[data-theme="dark"] .text-muted,
html[data-bs-theme="dark"] label,
html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] .form-text,
html[data-bs-theme="dark"] small,
html[data-bs-theme="dark"] .text-muted,
html.admin-theme-dark label,
html.admin-theme-dark .form-label,
html.admin-theme-dark .form-text,
html.admin-theme-dark small,
html.admin-theme-dark .text-muted {
    color: var(--admin-text-soft) !important;
}

/* Tablolar */
html[data-theme="dark"] .table,
html[data-theme="dark"] table,
html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] table,
html.admin-theme-dark .table,
html.admin-theme-dark table {
    color: var(--admin-text) !important;
    border-color: var(--admin-border) !important;
}

html[data-theme="dark"] .table thead,
html[data-theme="dark"] table thead,
html[data-theme="dark"] .table-light,
html[data-theme="dark"] .table > :not(caption) > * > *,
html[data-bs-theme="dark"] .table thead,
html[data-bs-theme="dark"] table thead,
html[data-bs-theme="dark"] .table-light,
html[data-bs-theme="dark"] .table > :not(caption) > * > *,
html.admin-theme-dark .table thead,
html.admin-theme-dark table thead,
html.admin-theme-dark .table-light,
html.admin-theme-dark .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--admin-text) !important;
    border-color: var(--admin-border) !important;
}

html[data-theme="dark"] .table tbody tr,
html[data-theme="dark"] table tbody tr,
html[data-bs-theme="dark"] .table tbody tr,
html[data-bs-theme="dark"] table tbody tr,
html.admin-theme-dark .table tbody tr,
html.admin-theme-dark table tbody tr {
    background-color: var(--admin-card) !important;
    border-color: var(--admin-border) !important;
}

html[data-theme="dark"] .table tbody tr:hover,
html[data-theme="dark"] table tbody tr:hover,
html[data-bs-theme="dark"] .table tbody tr:hover,
html[data-bs-theme="dark"] table tbody tr:hover,
html.admin-theme-dark .table tbody tr:hover,
html.admin-theme-dark table tbody tr:hover {
    background-color: #182235 !important;
}

/* Liste satırları */
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .list-item,
html[data-theme="dark"] .sortable-item,
html[data-theme="dark"] .service-item,
html[data-theme="dark"] .gallery-item,
html[data-theme="dark"] .product-item,
html[data-bs-theme="dark"] .list-group-item,
html[data-bs-theme="dark"] .list-item,
html[data-bs-theme="dark"] .sortable-item,
html[data-bs-theme="dark"] .service-item,
html[data-bs-theme="dark"] .gallery-item,
html[data-bs-theme="dark"] .product-item,
html.admin-theme-dark .list-group-item,
html.admin-theme-dark .list-item,
html.admin-theme-dark .sortable-item,
html.admin-theme-dark .service-item,
html.admin-theme-dark .gallery-item,
html.admin-theme-dark .product-item {
    background: var(--admin-card) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}

/* İç sayfa kartları */
html[data-theme="dark"] body .soft-card,
html[data-theme="dark"] body .glass,
html[data-bs-theme="dark"] body .soft-card,
html[data-bs-theme="dark"] body .glass,
html.admin-theme-dark body .soft-card,
html.admin-theme-dark body .glass {
    background: var(--admin-card) !important;
    border: 1px solid var(--admin-border) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.32) !important;
    color: var(--admin-text) !important;
}

/* Stylish list */
html[data-theme="dark"] body .stylish-list .list-group-item,
html[data-bs-theme="dark"] body .stylish-list .list-group-item,
html.admin-theme-dark body .stylish-list .list-group-item {
    background: var(--admin-card) !important;
    border: 1px solid var(--admin-border) !important;
    color: var(--admin-text) !important;
}

html[data-theme="dark"] body .stylish-list .list-group-item:hover,
html[data-bs-theme="dark"] body .stylish-list .list-group-item:hover,
html.admin-theme-dark body .stylish-list .list-group-item:hover {
    background: var(--admin-card-2) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.34) !important;
}

html[data-theme="dark"] body .stylish-list .fw-bold,
html[data-bs-theme="dark"] body .stylish-list .fw-bold,
html.admin-theme-dark body .stylish-list .fw-bold {
    color: var(--admin-text) !important;
}

html[data-theme="dark"] body .tiny,
html[data-theme="dark"] body .stylish-list .text-muted,
html[data-bs-theme="dark"] body .tiny,
html[data-bs-theme="dark"] body .stylish-list .text-muted,
html.admin-theme-dark body .tiny,
html.admin-theme-dark body .stylish-list .text-muted {
    color: #aeb8ca !important;
}

/* Drag kutusu */
html[data-theme="dark"] body .drag-handle,
html[data-bs-theme="dark"] body .drag-handle,
html.admin-theme-dark body .drag-handle {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    color: #8fb3ff !important;
}

/* Görsel / icon kutuları */
html[data-theme="dark"] body .service-thumb-wrap,
html[data-theme="dark"] body .icon-preview-box,
html[data-bs-theme="dark"] body .service-thumb-wrap,
html[data-bs-theme="dark"] body .icon-preview-box,
html.admin-theme-dark body .service-thumb-wrap,
html.admin-theme-dark body .icon-preview-box {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .service-thumb-placeholder,
html[data-theme="dark"] body .icon-preview-box .text-muted,
html[data-bs-theme="dark"] body .service-thumb-placeholder,
html[data-bs-theme="dark"] body .icon-preview-box .text-muted,
html.admin-theme-dark body .service-thumb-placeholder,
html.admin-theme-dark body .icon-preview-box .text-muted {
    color: #8793a7 !important;
}

/* Açık kalan Bootstrap bg classları */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-body,
html[data-theme="dark"] .bg-body-tertiary,
html[data-theme="dark"] .bg-light-subtle,
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .bg-body,
html[data-bs-theme="dark"] .bg-body-tertiary,
html[data-bs-theme="dark"] .bg-light-subtle,
html.admin-theme-dark .bg-white,
html.admin-theme-dark .bg-light,
html.admin-theme-dark .bg-body,
html.admin-theme-dark .bg-body-tertiary,
html.admin-theme-dark .bg-light-subtle {
    background-color: var(--admin-card) !important;
    color: var(--admin-text) !important;
    border-color: var(--admin-border) !important;
}

/* Border classları */
html[data-theme="dark"] .border,
html[data-bs-theme="dark"] .border,
html.admin-theme-dark .border {
    border-color: var(--admin-border) !important;
}

/* Alertler */
html[data-theme="dark"] .alert-info,
html[data-bs-theme="dark"] .alert-info,
html.admin-theme-dark .alert-info {
    background: rgba(14,165,233,.12) !important;
    border-color: rgba(14,165,233,.35) !important;
    color: #c8ecff !important;
}

html[data-theme="dark"] .alert-success,
html[data-bs-theme="dark"] .alert-success,
html.admin-theme-dark .alert-success {
    background: rgba(34,197,94,.12) !important;
    border-color: rgba(34,197,94,.32) !important;
    color: #bbf7d0 !important;
}

html[data-theme="dark"] .alert-warning,
html[data-bs-theme="dark"] .alert-warning,
html.admin-theme-dark .alert-warning {
    background: rgba(245,158,11,.12) !important;
    border-color: rgba(245,158,11,.32) !important;
    color: #fde68a !important;
}

html[data-theme="dark"] .alert-danger,
html[data-bs-theme="dark"] .alert-danger,
html.admin-theme-dark .alert-danger {
    background: rgba(239,68,68,.12) !important;
    border-color: rgba(239,68,68,.32) !important;
    color: #fecaca !important;
}

/* Nav tabs */
html[data-theme="dark"] .nav-tabs,
html[data-bs-theme="dark"] .nav-tabs,
html.admin-theme-dark .nav-tabs {
    border-color: var(--admin-border) !important;
}

html[data-theme="dark"] .nav-tabs .nav-link,
html[data-bs-theme="dark"] .nav-tabs .nav-link,
html.admin-theme-dark .nav-tabs .nav-link {
    color: var(--admin-text-soft) !important;
    background: transparent !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .nav-tabs .nav-link:hover,
html[data-bs-theme="dark"] .nav-tabs .nav-link:hover,
html.admin-theme-dark .nav-tabs .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.045) !important;
    border-color: var(--admin-border) !important;
}

html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-bs-theme="dark"] .nav-tabs .nav-link.active,
html.admin-theme-dark .nav-tabs .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: var(--admin-border) var(--admin-border) transparent !important;
}

/* Nav pills */
html[data-theme="dark"] .nav-pills .nav-link,
html[data-bs-theme="dark"] .nav-pills .nav-link,
html.admin-theme-dark .nav-pills .nav-link {
    color: var(--admin-text-soft) !important;
}

html[data-theme="dark"] .nav-pills .nav-link.active,
html[data-bs-theme="dark"] .nav-pills .nav-link.active,
html.admin-theme-dark .nav-pills .nav-link.active {
    color: #fff !important;
}

/* Dropdown */
html[data-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .dropdown-menu,
html.admin-theme-dark .dropdown-menu {
    background: var(--admin-card) !important;
    border-color: var(--admin-border) !important;
    box-shadow: var(--admin-shadow) !important;
}

html[data-theme="dark"] .dropdown-item,
html[data-bs-theme="dark"] .dropdown-item,
html.admin-theme-dark .dropdown-item {
    color: var(--admin-text-soft) !important;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:hover,
html.admin-theme-dark .dropdown-item:hover {
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
}

/* Modal */
html[data-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .modal-content,
html.admin-theme-dark .modal-content {
    background: var(--admin-card) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer,
html.admin-theme-dark .modal-header,
html.admin-theme-dark .modal-footer {
    border-color: var(--admin-border) !important;
}

/* Kod / preview */
html[data-theme="dark"] code,
html[data-theme="dark"] pre,
html[data-bs-theme="dark"] code,
html[data-bs-theme="dark"] pre,
html.admin-theme-dark code,
html.admin-theme-dark pre {
    background: #0b1220 !important;
    color: #dbeafe !important;
    border-color: var(--admin-border) !important;
}

/* Ayarlar dosya preview */
html[data-theme="dark"] .setting-file-preview,
html[data-bs-theme="dark"] .setting-file-preview,
html.admin-theme-dark .setting-file-preview {
    background: #0b1220 !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}

html[data-theme="dark"] .setting-file-preview img,
html[data-bs-theme="dark"] .setting-file-preview img,
html.admin-theme-dark .setting-file-preview img {
    background: #fff !important;
}

/* TinyMCE dış çerçeve */
html[data-theme="dark"] .tox-tinymce,
html[data-bs-theme="dark"] .tox-tinymce,
html.admin-theme-dark .tox-tinymce {
    border-color: var(--admin-border) !important;
}

html[data-theme="dark"] .tox .tox-toolbar,
html[data-theme="dark"] .tox .tox-toolbar__primary,
html[data-theme="dark"] .tox .tox-menubar,
html[data-theme="dark"] .tox .tox-statusbar,
html[data-bs-theme="dark"] .tox .tox-toolbar,
html[data-bs-theme="dark"] .tox .tox-toolbar__primary,
html[data-bs-theme="dark"] .tox .tox-menubar,
html[data-bs-theme="dark"] .tox .tox-statusbar,
html.admin-theme-dark .tox .tox-toolbar,
html.admin-theme-dark .tox .tox-toolbar__primary,
html.admin-theme-dark .tox .tox-menubar,
html.admin-theme-dark .tox .tox-statusbar {
    background: #111827 !important;
    border-color: var(--admin-border) !important;
}

html[data-theme="dark"] .tox .tox-mbtn,
html[data-theme="dark"] .tox .tox-tbtn,
html[data-theme="dark"] .tox .tox-statusbar__path-item,
html[data-theme="dark"] .tox .tox-statusbar__wordcount,
html[data-bs-theme="dark"] .tox .tox-mbtn,
html[data-bs-theme="dark"] .tox .tox-tbtn,
html[data-bs-theme="dark"] .tox .tox-statusbar__path-item,
html[data-bs-theme="dark"] .tox .tox-statusbar__wordcount,
html.admin-theme-dark .tox .tox-mbtn,
html.admin-theme-dark .tox .tox-tbtn,
html.admin-theme-dark .tox .tox-statusbar__path-item,
html.admin-theme-dark .tox .tox-statusbar__wordcount {
    color: var(--admin-text-soft) !important;
}

html[data-theme="dark"] .tox .tox-tbtn svg,
html[data-bs-theme="dark"] .tox .tox-tbtn svg,
html.admin-theme-dark .tox .tox-tbtn svg {
    fill: var(--admin-text-soft) !important;
}

/* TinyMCE editör içi beyaz kalsın */
html[data-theme="dark"] .tox-edit-area__iframe,
html[data-bs-theme="dark"] .tox-edit-area__iframe,
html.admin-theme-dark .tox-edit-area__iframe {
    background: #fff !important;
}

/* Geri butonu / beyaz kalan özel soft buton */
html[data-theme="dark"] .btn-soft-secondary,
html[data-bs-theme="dark"] .btn-soft-secondary,
html.admin-theme-dark .btn-soft-secondary {
    background: #101827 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #dbe4f3 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .btn-soft-secondary i,
html[data-bs-theme="dark"] .btn-soft-secondary i,
html.admin-theme-dark .btn-soft-secondary i {
    color: #dbe4f3 !important;
}

html[data-theme="dark"] .btn-soft-secondary:hover,
html[data-bs-theme="dark"] .btn-soft-secondary:hover,
html.admin-theme-dark .btn-soft-secondary:hover {
    background: #182235 !important;
    border-color: rgba(255,255,255,.18) !important;
    color: #fff !important;
}

html[data-theme="dark"] .btn-soft-secondary:hover i,
html[data-bs-theme="dark"] .btn-soft-secondary:hover i,
html.admin-theme-dark .btn-soft-secondary:hover i {
    color: #fff !important;
}

/* Disabled soft buton olursa beyaz patlamasın */
html[data-theme="dark"] .btn-soft-secondary:disabled,
html[data-theme="dark"] .btn-soft-secondary.disabled,
html[data-bs-theme="dark"] .btn-soft-secondary:disabled,
html[data-bs-theme="dark"] .btn-soft-secondary.disabled,
html.admin-theme-dark .btn-soft-secondary:disabled,
html.admin-theme-dark .btn-soft-secondary.disabled {
    background: #0d1420 !important;
    border-color: rgba(255,255,255,.08) !important;
    color: rgba(219,228,243,.45) !important;
    opacity: 1 !important;
}

/* İçerik wrapper */
html[data-theme="dark"] body .page-wrap,
html[data-bs-theme="dark"] body .page-wrap,
html.admin-theme-dark body .page-wrap {
    background: transparent !important;
}

/* Scrollbar */
html[data-theme="dark"] ::-webkit-scrollbar,
html[data-bs-theme="dark"] ::-webkit-scrollbar,
html.admin-theme-dark ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html[data-theme="dark"] ::-webkit-scrollbar-track,
html[data-bs-theme="dark"] ::-webkit-scrollbar-track,
html.admin-theme-dark ::-webkit-scrollbar-track {
    background: #080d15;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb,
html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb,
html.admin-theme-dark ::-webkit-scrollbar-thumb {
    background: #263244;
    border-radius: 999px;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover,
html.admin-theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #34445c;
}


/* =========================================================
   DARK MODE - İKON KÜTÜPHANESİ SAYFASI
   Dosya: admin/views/ikonlar.php
   .iconlib-* özel stillerini dark moda çeker.
========================================================= */

html[data-theme="dark"] body .iconlib-page,
html[data-bs-theme="dark"] body .iconlib-page,
html.admin-theme-dark body .iconlib-page {
    --iconlib-bg: #070b12;
    --iconlib-card: #111827;
    --iconlib-line: rgba(255,255,255,.09);
    --iconlib-text: #f3f6fb;
    --iconlib-muted: #aeb8ca;
    --iconlib-blue: #60a5fa;
    --iconlib-cyan: #22d3ee;
    --iconlib-shadow: 0 18px 45px rgba(0,0,0,.32);

    background: transparent !important;
    color: var(--iconlib-text) !important;
}

/* Üst başlık alanı */
html[data-theme="dark"] body .iconlib-header,
html[data-bs-theme="dark"] body .iconlib-header,
html.admin-theme-dark body .iconlib-header {
    background: linear-gradient(135deg, #111827 0%, #172235 55%, #0f172a 100%) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.32) !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-title,
html[data-bs-theme="dark"] body .iconlib-title,
html.admin-theme-dark body .iconlib-title {
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-muted,
html[data-bs-theme="dark"] body .iconlib-muted,
html.admin-theme-dark body .iconlib-muted {
    color: #aeb8ca !important;
}

/* Filtre paneli */
html[data-theme="dark"] body .iconlib-panel,
html[data-bs-theme="dark"] body .iconlib-panel,
html.admin-theme-dark body .iconlib-panel {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.32) !important;
    color: #f3f6fb !important;
}

/* Arama input kapsayıcı */
html[data-theme="dark"] body .iconlib-control,
html[data-bs-theme="dark"] body .iconlib-control,
html.admin-theme-dark body .iconlib-control {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-control i,
html[data-bs-theme="dark"] body .iconlib-control i,
html.admin-theme-dark body .iconlib-control i {
    color: #aeb8ca !important;
}

html[data-theme="dark"] body .iconlib-control input,
html[data-bs-theme="dark"] body .iconlib-control input,
html.admin-theme-dark body .iconlib-control input {
    background: transparent !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-control input::placeholder,
html[data-bs-theme="dark"] body .iconlib-control input::placeholder,
html.admin-theme-dark body .iconlib-control input::placeholder {
    color: #8d99ad !important;
}

/* Select alanları */
html[data-theme="dark"] body .iconlib-select,
html[data-bs-theme="dark"] body .iconlib-select,
html.admin-theme-dark body .iconlib-select {
    background-color: #0b1220 !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #f3f6fb !important;
}

/* İstatistik chipleri */
html[data-theme="dark"] body .iconlib-stats,
html[data-bs-theme="dark"] body .iconlib-stats,
html.admin-theme-dark body .iconlib-stats {
    border-top-color: rgba(255,255,255,.09) !important;
    color: #aeb8ca !important;
}

html[data-theme="dark"] body .iconlib-stats span,
html[data-bs-theme="dark"] body .iconlib-stats span,
html.admin-theme-dark body .iconlib-stats span {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    color: #aeb8ca !important;
}

html[data-theme="dark"] body .iconlib-stats strong,
html[data-bs-theme="dark"] body .iconlib-stats strong,
html.admin-theme-dark body .iconlib-stats strong {
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-stats code,
html[data-bs-theme="dark"] body .iconlib-stats code,
html.admin-theme-dark body .iconlib-stats code {
    background: #080f1c !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #dbeafe !important;
}

/* Durum kutusu */
html[data-theme="dark"] body .iconlib-status,
html[data-bs-theme="dark"] body .iconlib-status,
html.admin-theme-dark body .iconlib-status {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    color: #aeb8ca !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.32) !important;
}

html[data-theme="dark"] body .iconlib-status.is-error,
html[data-bs-theme="dark"] body .iconlib-status.is-error,
html.admin-theme-dark body .iconlib-status.is-error {
    background: rgba(239,68,68,.12) !important;
    border-color: rgba(239,68,68,.32) !important;
    color: #fecaca !important;
}

/* İkon kartları */
html[data-theme="dark"] body .iconlib-card,
html[data-bs-theme="dark"] body .iconlib-card,
html.admin-theme-dark body .iconlib-card {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.28) !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-card:hover,
html[data-bs-theme="dark"] body .iconlib-card:hover,
html.admin-theme-dark body .iconlib-card:hover {
    background: #151e2e !important;
    border-color: rgba(96,165,250,.35) !important;
    box-shadow: 0 22px 52px rgba(0,0,0,.36) !important;
}

/* İkon preview alanı */
html[data-theme="dark"] body .iconlib-preview,
html[data-bs-theme="dark"] body .iconlib-preview,
html.admin-theme-dark body .iconlib-preview {
    background: linear-gradient(180deg, #0b1220, #101827) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] body .iconlib-preview i,
html[data-bs-theme="dark"] body .iconlib-preview i,
html.admin-theme-dark body .iconlib-preview i {
    color: #60a5fa !important;
}

/* Kart içi yazılar */
html[data-theme="dark"] body .iconlib-name,
html[data-bs-theme="dark"] body .iconlib-name,
html.admin-theme-dark body .iconlib-name {
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-code,
html[data-bs-theme="dark"] body .iconlib-code,
html.admin-theme-dark body .iconlib-code {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #dbeafe !important;
}

/* Class kopyala butonu */
html[data-theme="dark"] body .iconlib-mini-btn,
html[data-bs-theme="dark"] body .iconlib-mini-btn,
html.admin-theme-dark body .iconlib-mini-btn {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-mini-btn:hover,
html[data-bs-theme="dark"] body .iconlib-mini-btn:hover,
html.admin-theme-dark body .iconlib-mini-btn:hover {
    background: #182235 !important;
    border-color: rgba(96,165,250,.28) !important;
    color: #fff !important;
}

/* Pagination */
html[data-theme="dark"] body .iconlib-page-btn,
html[data-bs-theme="dark"] body .iconlib-page-btn,
html.admin-theme-dark body .iconlib-page-btn {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .iconlib-page-btn:hover:not(:disabled),
html[data-bs-theme="dark"] body .iconlib-page-btn:hover:not(:disabled),
html.admin-theme-dark body .iconlib-page-btn:hover:not(:disabled) {
    background: #182235 !important;
    border-color: rgba(96,165,250,.28) !important;
}

html[data-theme="dark"] body .iconlib-page-btn.active,
html[data-bs-theme="dark"] body .iconlib-page-btn.active,
html.admin-theme-dark body .iconlib-page-btn.active {
    background: linear-gradient(135deg,#22d3ee,#2563eb) !important;
    border-color: transparent !important;
    color: #fff !important;
}

html[data-theme="dark"] body .iconlib-page-btn:disabled,
html[data-bs-theme="dark"] body .iconlib-page-btn:disabled,
html.admin-theme-dark body .iconlib-page-btn:disabled {
    opacity: .42 !important;
}

/* Üstteki Sıfırla butonu beyaz kalmasın */
html[data-theme="dark"] body .iconlib-header #resetBtn,
html[data-bs-theme="dark"] body .iconlib-header #resetBtn,
html.admin-theme-dark body .iconlib-header #resetBtn {
    background: #101827 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #dbe4f3 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .iconlib-header #resetBtn i,
html[data-bs-theme="dark"] body .iconlib-header #resetBtn i,
html.admin-theme-dark body .iconlib-header #resetBtn i {
    color: #dbe4f3 !important;
}

html[data-theme="dark"] body .iconlib-header #resetBtn:hover,
html[data-bs-theme="dark"] body .iconlib-header #resetBtn:hover,
html.admin-theme-dark body .iconlib-header #resetBtn:hover {
    background: #182235 !important;
    border-color: rgba(255,255,255,.18) !important;
    color: #fff !important;
}

/* Toast */
html[data-theme="dark"] body .iconlib-toast,
html[data-bs-theme="dark"] body .iconlib-toast,
html.admin-theme-dark body .iconlib-toast {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #f3f6fb !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.38) !important;
}

/* =========================================================
   DARK MODE - TinyMCE editör iç alanı
========================================================= */

html[data-theme="dark"] .tox-edit-area__iframe,
html[data-bs-theme="dark"] .tox-edit-area__iframe,
html.admin-theme-dark .tox-edit-area__iframe {
    background: #0b1220 !important;
}

html[data-theme="dark"] .tox .tox-edit-area,
html[data-bs-theme="dark"] .tox .tox-edit-area,
html.admin-theme-dark .tox .tox-edit-area {
    background: #0b1220 !important;
}

html[data-theme="dark"] .tox-tinymce,
html[data-bs-theme="dark"] .tox-tinymce,
html.admin-theme-dark .tox-tinymce {
    background: #0b1220 !important;
    border-color: rgba(255,255,255,.12) !important;
}

/* =========================================================
   DARK MODE - DİLLER SAYFASI FIX
   Dosya: admin/views/diller.php
   .glow-header tek başına kullanıldığı için ayrıca ezilir.
========================================================= */

html[data-theme="dark"] body .glow-header,
html[data-bs-theme="dark"] body .glow-header,
html.admin-theme-dark body .glow-header {
    background: linear-gradient(135deg, #111827 0%, #172235 55%, #0f172a 100%) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.32) !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .glow-header *,
html[data-bs-theme="dark"] body .glow-header *,
html.admin-theme-dark body .glow-header * {
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .glow-header .muted,
html[data-bs-theme="dark"] body .glow-header .muted,
html.admin-theme-dark body .glow-header .muted {
    color: #b9c4d6 !important;
}

/* Diller sayfası header ikonu */
html[data-theme="dark"] body .glow-header .header-icon,
html[data-bs-theme="dark"] body .glow-header .header-icon,
html.admin-theme-dark body .glow-header .header-icon {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    color: #8fb3ff !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.32) !important;
}

html[data-theme="dark"] body .glow-header .header-icon i,
html[data-bs-theme="dark"] body .glow-header .header-icon i,
html.admin-theme-dark body .glow-header .header-icon i {
    color: #8fb3ff !important;
}

/* Diller sayfası liste içi bayrak kutusu */
html[data-theme="dark"] body .avatar-sm.bg-light,
html[data-bs-theme="dark"] body .avatar-sm.bg-light,
html.admin-theme-dark body .avatar-sm.bg-light {
    background: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
}

/* Varsayılan dil / aktif badge'ler darkta patlamasın */
html[data-theme="dark"] body .badge.state-badge.bg-primary,
html[data-bs-theme="dark"] body .badge.state-badge.bg-primary,
html.admin-theme-dark body .badge.state-badge.bg-primary {
    background: rgba(96,165,250,.16) !important;
    color: #bfdbfe !important;
    border: 1px solid rgba(96,165,250,.26) !important;
}

html[data-theme="dark"] body .badge.state-badge.bg-success,
html[data-bs-theme="dark"] body .badge.state-badge.bg-success,
html.admin-theme-dark body .badge.state-badge.bg-success {
    background: rgba(34,197,94,.15) !important;
    color: #bbf7d0 !important;
    border: 1px solid rgba(34,197,94,.24) !important;
}

html[data-theme="dark"] body .badge.state-badge.bg-secondary,
html[data-bs-theme="dark"] body .badge.state-badge.bg-secondary,
html.admin-theme-dark body .badge.state-badge.bg-secondary {
    background: rgba(148,163,184,.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148,163,184,.22) !important;
}

/* Diller sayfasında pasif toggle outline koyu zeminde okunaklı olsun */
html[data-theme="dark"] body .toggle-btn.btn-outline-secondary,
html[data-bs-theme="dark"] body .toggle-btn.btn-outline-secondary,
html.admin-theme-dark body .toggle-btn.btn-outline-secondary {
    background: #0b1220 !important;
    border-color: rgba(255,255,255,.13) !important;
    color: #c8d1e3 !important;
}

html[data-theme="dark"] body .toggle-btn.btn-outline-secondary i,
html[data-bs-theme="dark"] body .toggle-btn.btn-outline-secondary i,
html.admin-theme-dark body .toggle-btn.btn-outline-secondary i {
    color: #c8d1e3 !important;
}

/* Düzenle butonu btn-light beyaz kalmasın */
html[data-theme="dark"] body .stylish-list .btn-light,
html[data-bs-theme="dark"] body .stylish-list .btn-light,
html.admin-theme-dark body .stylish-list .btn-light {
    background: #101827 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #dbe4f3 !important;
}

html[data-theme="dark"] body .stylish-list .btn-light i,
html[data-bs-theme="dark"] body .stylish-list .btn-light i,
html.admin-theme-dark body .stylish-list .btn-light i {
    color: #dbe4f3 !important;
}

html[data-theme="dark"] body .stylish-list .btn-light:hover,
html[data-bs-theme="dark"] body .stylish-list .btn-light:hover,
html.admin-theme-dark body .stylish-list .btn-light:hover {
    background: #182235 !important;
    color: #fff !important;
}

/* =========================================================
   DARK MODE - GENEL SWITCH / AKTİF PASİF BUTONLARI
   Checkbox switchlerde aktif durum net görünsün.
========================================================= */

html[data-theme="dark"] .form-switch .form-check-input,
html[data-bs-theme="dark"] .form-switch .form-check-input,
html.admin-theme-dark .form-switch .form-check-input {
    width: 42px !important;
    height: 22px !important;
    background-color: #0b1220 !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    box-shadow: none !important;
    cursor: pointer;
}

html[data-theme="dark"] .form-switch .form-check-input:not(:checked),
html[data-bs-theme="dark"] .form-switch .form-check-input:not(:checked),
html.admin-theme-dark .form-switch .form-check-input:not(:checked) {
    background-color: #0b1220 !important;
    border-color: rgba(255,255,255,.22) !important;
}

html[data-theme="dark"] .form-switch .form-check-input:checked,
html[data-bs-theme="dark"] .form-switch .form-check-input:checked,
html.admin-theme-dark .form-switch .form-check-input:checked {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22,163,74,.16) !important;
}

html[data-theme="dark"] .form-switch .form-check-input:focus,
html[data-bs-theme="dark"] .form-switch .form-check-input:focus,
html.admin-theme-dark .form-switch .form-check-input:focus {
    border-color: rgba(96,165,250,.65) !important;
    box-shadow: 0 0 0 4px rgba(96,165,250,.14) !important;
}

html[data-theme="dark"] .form-switch .form-check-label,
html[data-bs-theme="dark"] .form-switch .form-check-label,
html.admin-theme-dark .form-switch .form-check-label {
    color: #dbe4f3 !important;
    font-weight: 500;
}

/* Aktif switch label daha belirgin olsun */
html[data-theme="dark"] .form-switch .form-check-input:checked + .form-check-label,
html[data-bs-theme="dark"] .form-switch .form-check-input:checked + .form-check-label,
html.admin-theme-dark .form-switch .form-check-input:checked + .form-check-label {
    color: #bbf7d0 !important;
    font-weight: 700;
}

/* Normal checkbox/radio alanları da darkta kaybolmasın */
html[data-theme="dark"] .form-check-input,
html[data-bs-theme="dark"] .form-check-input,
html.admin-theme-dark .form-check-input {
    background-color: #0b1220 !important;
    border-color: rgba(255,255,255,.24) !important;
}

html[data-theme="dark"] .form-check-input:checked,
html[data-bs-theme="dark"] .form-check-input:checked,
html.admin-theme-dark .form-check-input:checked {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

/* =========================================================
   DARK MODE - FOTO GALERİ GÖRSEL GRID FIX
   Dosya: admin/views/foto-galeri-edit.php
   Galeri görselleri alanındaki beyaz arka planı dark yapar.
========================================================= */

html[data-theme="dark"] body .gallery-grid,
html[data-bs-theme="dark"] body .gallery-grid,
html.admin-theme-dark body .gallery-grid {
    background: #0b1220 !important;
    border: 1px dashed rgba(255,255,255,.14) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025) !important;
    color: #f3f6fb !important;
}

html[data-theme="dark"] body .gallery-grid .empty-hint,
html[data-bs-theme="dark"] body .gallery-grid .empty-hint,
html.admin-theme-dark body .gallery-grid .empty-hint {
    background: #111827 !important;
    border: 1px dashed rgba(255,255,255,.14) !important;
    color: #aeb8ca !important;
}

html[data-theme="dark"] body .gal-thumb-wrap,
html[data-bs-theme="dark"] body .gal-thumb-wrap,
html.admin-theme-dark body .gal-thumb-wrap {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.34) !important;
}

html[data-theme="dark"] body .gal-thumb-wrap:hover,
html[data-bs-theme="dark"] body .gal-thumb-wrap:hover,
html.admin-theme-dark body .gal-thumb-wrap:hover {
    border-color: rgba(96,165,250,.28) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.42) !important;
}

html[data-theme="dark"] body .gal-remove,
html[data-bs-theme="dark"] body .gal-remove,
html.admin-theme-dark body .gal-remove {
    background: rgba(239,68,68,.96) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.28) !important;
}

html[data-theme="dark"] body .gal-remove i,
html[data-bs-theme="dark"] body .gal-remove i,
html.admin-theme-dark body .gal-remove i {
    color: #fff !important;
}