/**
 * Karanlık tema — AdminLTE 3 panel (app.css / app-lte3.css sonrası)
 * html[data-theme="dark"] ile etkinleşir
 */

/* Üst navbar */
[data-theme="dark"] body.layout-app.layout-lte3 .main-header.navbar-light {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid var(--hf-border, #334155) !important;
}

[data-theme="dark"] body.layout-app.layout-lte3 .main-header.navbar-light .nav-link {
    color: rgba(241, 245, 249, 0.88) !important;
}

[data-theme="dark"] body.layout-app.layout-lte3 .main-header .nav-link:hover,
[data-theme="dark"] body.layout-app.layout-lte3 .main-header .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] body.layout-app.layout-lte3 .main-header .navbar-badge {
    color: #0f172a;
}

[data-theme="dark"] body.layout-app.layout-lte3 .navbar .user-menu > .nav-link,
[data-theme="dark"] body.layout-app.layout-lte3 .layout-app .navbar .user-menu > a {
    color: rgba(241, 245, 249, 0.9) !important;
}

/* İçerik & kartlar */
[data-theme="dark"] body.layout-app.layout-lte3 .content .box,
[data-theme="dark"] body.layout-app.layout-lte3 .welcome-bar {
    background-color: var(--hf-surface, #1e293b) !important;
    color: var(--hf-text, #e2e8f0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] body.layout-app.layout-lte3 .content .box .box-header {
    background-color: var(--hf-surface-elevated, #334155) !important;
    border-bottom-color: var(--hf-border, #334155) !important;
}

[data-theme="dark"] body.layout-app.layout-lte3 .content-header h1 {
    color: var(--hf-text-heading, #f1f5f9);
}

[data-theme="dark"] body.layout-app.layout-lte3 .content .table thead th {
    color: var(--hf-text-muted, #94a3b8) !important;
    border-bottom-color: var(--hf-border, #334155) !important;
}

/* Metin & bağlantılar */
[data-theme="dark"] body.layout-app.layout-lte3 .content {
    color: var(--hf-text, #e2e8f0);
}

[data-theme="dark"] body.layout-app.layout-lte3 .content a:not(.btn):not(.nav-link):not(.dropdown-item):not(.small-box-footer) {
    color: var(--hf-link, #5eead4);
}

[data-theme="dark"] body.layout-app.layout-lte3 .content a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: var(--hf-link-hover, #99f6e4);
}

[data-theme="dark"] body.layout-app.layout-lte3 .content p,
[data-theme="dark"] body.layout-app.layout-lte3 .content li,
[data-theme="dark"] body.layout-app.layout-lte3 .content td,
[data-theme="dark"] body.layout-app.layout-lte3 .content th {
    color: inherit;
}

[data-theme="dark"] body.layout-app.layout-lte3 hr {
    border-top-color: var(--hf-border, #334155);
}

[data-theme="dark"] body.layout-app.layout-lte3 pre,
[data-theme="dark"] body.layout-app.layout-lte3 code,
[data-theme="dark"] body.layout-app.layout-lte3 .well,
[data-theme="dark"] body.layout-app.layout-lte3 .bg-light,
[data-theme="dark"] body.layout-app.layout-lte3 .bg-white {
    background: var(--hf-surface-elevated, #334155) !important;
    border-color: var(--hf-border-strong, #475569) !important;
    color: var(--hf-text, #e2e8f0) !important;
}

/* Form elemanları */
[data-theme="dark"] body.layout-app.layout-lte3 select.form-control option {
    background: var(--hf-surface, #1e293b);
    color: var(--hf-text, #e2e8f0);
}

[data-theme="dark"] body.layout-app.layout-lte3 .custom-control-label,
[data-theme="dark"] body.layout-app.layout-lte3 .custom-file-label {
    color: var(--hf-text, #e2e8f0);
}

[data-theme="dark"] body.layout-app.layout-lte3 .custom-file-label,
[data-theme="dark"] body.layout-app.layout-lte3 .custom-file-label::after {
    background: var(--hf-surface-elevated, #334155);
    border-color: var(--hf-border-strong, #475569);
    color: var(--hf-text, #e2e8f0);
}

[data-theme="dark"] body.layout-app.layout-lte3 .input-group-text {
    background: var(--hf-surface-elevated, #334155);
    border-color: var(--hf-border-strong, #475569);
    color: var(--hf-text-muted, #94a3b8);
}

[data-theme="dark"] body.layout-app.layout-lte3 .form-control:disabled,
[data-theme="dark"] body.layout-app.layout-lte3 .form-control[readonly] {
    background: #0f172a;
    color: var(--hf-text-muted, #94a3b8);
}

/* Bildirim dropdown */
[data-theme="dark"] body.layout-app.layout-lte3 .hf-notifications-dropdown .dropdown-header,
[data-theme="dark"] body.layout-app.layout-lte3 .hf-notifications-dropdown .dropdown-footer {
    background: var(--hf-surface, #1e293b);
    color: var(--hf-text-muted, #94a3b8);
}

[data-theme="dark"] body.layout-app.layout-lte3 .hf-notification-item {
    color: var(--hf-text, #e2e8f0);
    border-bottom: 1px solid var(--hf-border, #334155);
}

[data-theme="dark"] body.layout-app.layout-lte3 .hf-notification-item:hover {
    background: var(--hf-surface-elevated, #334155);
}

[data-theme="dark"] body.layout-app.layout-lte3 .hf-notification-item--unread {
    background: rgba(0, 137, 123, 0.12);
}

[data-theme="dark"] body.layout-app.layout-lte3 .hf-notification-title {
    color: var(--hf-text-heading, #f1f5f9);
}

/* Summernote */
[data-theme="dark"] body.layout-app.layout-lte3 .note-editor.note-frame {
    border-color: var(--hf-border-strong, #475569);
}

[data-theme="dark"] body.layout-app.layout-lte3 .note-toolbar {
    background: var(--hf-surface-elevated, #334155);
    border-bottom-color: var(--hf-border, #334155);
}

[data-theme="dark"] body.layout-app.layout-lte3 .note-btn {
    background: var(--hf-surface, #1e293b);
    border-color: var(--hf-border-strong, #475569);
    color: var(--hf-text, #e2e8f0);
}

[data-theme="dark"] body.layout-app.layout-lte3 .note-btn:hover,
[data-theme="dark"] body.layout-app.layout-lte3 .note-btn.active {
    background: #475569;
    color: #fff;
}

[data-theme="dark"] body.layout-app.layout-lte3 .note-editing-area .note-editable {
    background: var(--hf-surface, #1e293b);
    color: var(--hf-text, #e2e8f0);
}

[data-theme="dark"] body.layout-app.layout-lte3 .note-statusbar {
    background: var(--hf-surface-elevated, #334155);
    border-top-color: var(--hf-border, #334155);
}

[data-theme="dark"] body.layout-app.layout-lte3 .note-modal-content {
    background: var(--hf-surface, #1e293b);
    color: var(--hf-text, #e2e8f0);
}

/* Chart.js (dashboard) */
[data-theme="dark"] body.layout-app.layout-lte3 .chart-wrap,
[data-theme="dark"] body.layout-app.layout-lte3 .box .chart-responsive {
    background: transparent;
}

/* Select2 bootstrap4 — çoklu seçim */
[data-theme="dark"] body.layout-app.layout-lte3 .select2-container--bootstrap4 .select2-selection--multiple {
    background: var(--hf-surface, #1e293b) !important;
    border-color: var(--hf-border-strong, #475569) !important;
}

[data-theme="dark"] body.layout-app.layout-lte3 .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    background: var(--hf-surface-elevated, #334155);
    border-color: var(--hf-border-strong, #475569);
    color: var(--hf-text, #e2e8f0);
}

/* Tablo striped — LTE3 */
[data-theme="dark"] body.layout-app.layout-lte3 .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(15, 23, 42, 0.45);
}

[data-theme="dark"] body.layout-app.layout-lte3 .table-striped tbody tr:nth-of-type(even) td {
    background-color: var(--hf-surface, #1e293b) !important;
}

/* Outline butonlar */
[data-theme="dark"] body.layout-app.layout-lte3 .btn-outline-secondary {
    color: var(--hf-text, #e2e8f0);
    border-color: var(--hf-border-strong, #475569);
}

[data-theme="dark"] body.layout-app.layout-lte3 .btn-outline-secondary:hover {
    background: var(--hf-surface-elevated, #334155);
    color: #fff;
}

/* Klavye kısayolları modal tablosu */
[data-theme="dark"] body.layout-app.layout-lte3 .table-borderless td {
    color: var(--hf-text, #e2e8f0);
}

/* Profil kutusu (box-profile) */
[data-theme="dark"] body.layout-app.layout-lte3 .box-profile .text-muted {
    color: var(--hf-text-muted, #94a3b8) !important;
}
