/* ============================================
   GECE MODU RENK UYUMLULUK DUZELTMELERI
   ============================================ */

/* Temel gece modu renkler */
[data-theme="dark"] {
    --bg-color: #0b1220;
    --card-bg: #111a2e;
    --text-color: #e2e8f0;
    --muted-color: #94a3b8;
    --secondary-color: #94a3b8;
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --accent-color: #fb923c;
    --accent-gradient: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

/* Navbar gece modu */
[data-theme="dark"] .navbar {
    background: #111a2e !important;
    border-bottom: 1px solid #334155;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar-brand {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .nav-link {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #3b82f6 !important;
}

/* Kartlar ve konteynerlar */
[data-theme="dark"] .card,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .offcanvas {
    background: #111a2e !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* Form elemanlari */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-check-input {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

/* Butonlar */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-primary {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-secondary {
    background: #64748b !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #94a3b8 !important;
    border-color: #64748b !important;
}

/* Linkler: genel mavi; beyaz/koyu yüzey ve Bootstrap bileşenlerinde ezme */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.accordion-button):not(.list-group-item-action):not(.text-reset) {
    color: #60a5fa !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):hover {
    color: #93c5fd !important;
}

[data-theme="dark"] a.text-white,
[data-theme="dark"] a.link-light,
[data-theme="dark"] .link-light {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] a.text-white-50,
[data-theme="dark"] .text-white-50 {
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] a.btn,
[data-theme="dark"] .btn a {
    color: inherit !important;
}

/* Text renkleri */
[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-body {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-primary {
    color: #3b82f6 !important;
}

[data-theme="dark"] .text-success {
    color: #10b981 !important;
}

[data-theme="dark"] .text-warning {
    color: #f59e0b !important;
}

[data-theme="dark"] .text-danger {
    color: #ef4444 !important;
}

[data-theme="dark"] .text-info {
    color: #06b6d4 !important;
}

/* Badge'ler */
[data-theme="dark"] .badge {
    background: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .badge.bg-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .badge.bg-success {
    background: #10b981 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .badge.bg-warning {
    background: #f59e0b !important;
    color: #ffffff !important;
}

[data-theme="dark"] .badge.bg-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .badge.bg-info {
    background: #06b6d4 !important;
    color: #ffffff !important;
}

/* Alert'ler */
[data-theme="dark"] .alert {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .alert-primary {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
}

[data-theme="dark"] .alert-light {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .alert-light .text-muted {
    color: #94a3b8 !important;
}

/* Pagination */
[data-theme="dark"] .page-link {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .page-link:hover {
    background: #334155 !important;
    color: #3b82f6 !important;
}

[data-theme="dark"] .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Table'lar */
[data-theme="dark"] .table {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > th {
    background: #1e293b !important;
}

[data-theme="dark"] .table-hover > tbody > tr:hover > td,
[data-theme="dark"] .table-hover > tbody > tr:hover > th {
    background: #334155 !important;
}

[data-theme="dark"] .table-bordered {
    border-color: #334155 !important;
}

[data-theme="dark"] .table-bordered td,
[data-theme="dark"] .table-bordered th {
    border-color: #334155 !important;
}

/* List group */
[data-theme="dark"] .list-group-item {
    background: #111a2e !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .list-group-item:hover {
    background: #1e293b !important;
}

/* Progress bar */
[data-theme="dark"] .progress {
    background: #334155 !important;
}

[data-theme="dark"] .progress-bar {
    background: #3b82f6 !important;
}

/* Footer */
[data-theme="dark"] footer {
    background: #0b1220 !important;
    color: #94a3b8 !important;
    border-top: 1px solid #334155 !important;
}

/* Sidebar ve navigation */
[data-theme="dark"] .sidebar,
[data-theme="dark"] .nav-sidebar {
    background: #111a2e !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .sidebar .nav-link {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .sidebar .nav-link:hover,
[data-theme="dark"] .sidebar .nav-link.active {
    background: #1e293b !important;
    color: #3b82f6 !important;
}

/* Input group */
[data-theme="dark"] .input-group-text {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* Dropdown */
[data-theme="dark"] .dropdown-item {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #1e293b !important;
    color: #3b82f6 !important;
}

/* Modal */
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    background: #111a2e !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .modal-title {
    color: #e2e8f0 !important;
}

/* Tooltip */
[data-theme="dark"] .tooltip-inner {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

/* Portfoy ve grid */
[data-theme="dark"] .portfoy-vitrin .portfoy-grid {
    background: #334155 !important;
}

[data-theme="dark"] .portfoy-grid-thumb {
    background: #1e293b !important;
}

/* Body background */
[data-theme="dark"] body {
    background: #0b1220 !important;
    color: #e2e8f0 !important;
}

/* Ana container */
[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid {
    background: transparent !important;
}

/* Başlıklar: yalnızca tipik içerik / kart içi; açık renkli hero ve özel sınıfları bozmaz */
[data-theme="dark"] main .card:not(.bg-transparent) h1,
[data-theme="dark"] main .card:not(.bg-transparent) h2,
[data-theme="dark"] main .card:not(.bg-transparent) h3,
[data-theme="dark"] main .card:not(.bg-transparent) h4,
[data-theme="dark"] main .card:not(.bg-transparent) h5,
[data-theme="dark"] main .card:not(.bg-transparent) h6 {
    color: #f1f5f9 !important;
}

/* p/span/div için global renk KALDIRILDI — trust-badge, gradient kart ve .text-* sınıfları eziliyordu */

[data-theme="dark"] .text-dark {
    color: #e2e8f0 !important;
}

/* .text-light: koyu zeminde açık gri; gradient üzerinde .text-white kullanın */
[data-theme="dark"] .text-light:not(.text-white) {
    color: #cbd5e1 !important;
}

/* Bootstrap component ozel duzeltmeler */
[data-theme="dark"] .btn-light {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .btn-light:hover {
    background: #475569 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .btn-dark {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #1e293b !important;
}

[data-theme="dark"] .btn-dark:hover {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}
