/* ===================================
   OTORIA DARK MODE DÜZELTMELERI
   Tüm sayfalar için dark mode uyumluluğu
   =================================== */

/* === GENEL DARK MODE AYARLARI === */
body[data-bs-theme="dark"],
html[data-bs-theme="dark"] body {
    background-color: #1a1d29 !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] * {
    border-color: #32394e;
}

body[data-bs-theme="dark"] *:not(.btn):not(.badge):not(.alert):not(i):not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
    color: inherit;
}

/* === CARD ve PANEL DÜZELTMELERİ === */
body[data-bs-theme="dark"] .card {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .card * {
    color: inherit;
}

body[data-bs-theme="dark"] .card h1,
body[data-bs-theme="dark"] .card h2,
body[data-bs-theme="dark"] .card h3,
body[data-bs-theme="dark"] .card h4,
body[data-bs-theme="dark"] .card h5,
body[data-bs-theme="dark"] .card h6 {
    color: #e3e8ef !important;
}

body[data-bs-theme="dark"] .card-header {
    background-color: #262c3c !important;
    border-bottom-color: #32394e !important;
    color: #e3e8ef !important;
}

body[data-bs-theme="dark"] .card-header * {
    color: inherit;
}

body[data-bs-theme="dark"] .card-body {
    background-color: #2a3042 !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .card-footer {
    background-color: #262c3c !important;
    border-top-color: #32394e !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .card-title {
    color: #e3e8ef !important;
}

/* === FORM ELEMENTLERİ === */
body[data-bs-theme="dark"] .form-control,
body[data-bs-theme="dark"] .form-select {
    background-color: #262c3c !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .form-control:focus,
body[data-bs-theme="dark"] .form-select:focus {
    background-color: #2a3042 !important;
    border-color: #556ee6 !important;
    color: #ced4da !important;
    box-shadow: 0 0 0 0.2rem rgba(85, 110, 230, 0.25) !important;
}

body[data-bs-theme="dark"] .form-control::placeholder {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .form-control:disabled,
body[data-bs-theme="dark"] .form-select:disabled {
    background-color: #1f2430 !important;
    color: #6c757d !important;
}

body[data-bs-theme="dark"] .form-label {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .form-check-label {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .form-text {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .input-group-text {
    background-color: #262c3c !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

/* === TABLE DÜZELTMELERİ === */
body[data-bs-theme="dark"] .table {
    color: #b8c2db !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .table * {
    color: inherit;
}

body[data-bs-theme="dark"] .table thead th {
    background-color: #556ee6 !important;
    color: #ffffff !important;
    border-color: #4c61d9 !important;
}

body[data-bs-theme="dark"] .table thead th * {
    color: #ffffff !important;
}

body[data-bs-theme="dark"] .table tbody tr {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: #262c3c !important;
}

body[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: #262c3c !important;
}

body[data-bs-theme="dark"] .table td,
body[data-bs-theme="dark"] .table th {
    border-color: #32394e !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .table td *,
body[data-bs-theme="dark"] .table th * {
    color: inherit;
}

body[data-bs-theme="dark"] .table a {
    color: #6e84f1 !important;
}

body[data-bs-theme="dark"] .table .btn {
    color: #ffffff !important;
}

/* === DATATABLE DÜZELTMELERİ === */
body[data-bs-theme="dark"] .dataTables_wrapper {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length,
body[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter,
body[data-bs-theme="dark"] .dataTables_wrapper .dataTables_info,
body[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input {
    background-color: #262c3c !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select {
    background-color: #262c3c !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .page-link {
    background-color: #262c3c !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .page-link:hover {
    background-color: #556ee6 !important;
    border-color: #556ee6 !important;
    color: #ffffff !important;
}

body[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: #556ee6 !important;
    border-color: #556ee6 !important;
    color: #ffffff !important;
}

body[data-bs-theme="dark"] .page-item.disabled .page-link {
    background-color: #1f2430 !important;
    border-color: #32394e !important;
    color: #6c757d !important;
}

/* === MODAL DÜZELTMELERİ === */
body[data-bs-theme="dark"] .modal-content {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .modal-content * {
    color: inherit;
}

body[data-bs-theme="dark"] .modal-content h1,
body[data-bs-theme="dark"] .modal-content h2,
body[data-bs-theme="dark"] .modal-content h3,
body[data-bs-theme="dark"] .modal-content h4,
body[data-bs-theme="dark"] .modal-content h5,
body[data-bs-theme="dark"] .modal-content h6 {
    color: #e3e8ef !important;
}

body[data-bs-theme="dark"] .modal-header {
    background-color: #262c3c !important;
    border-bottom-color: #32394e !important;
    color: #e3e8ef !important;
}

body[data-bs-theme="dark"] .modal-header * {
    color: inherit;
}

body[data-bs-theme="dark"] .modal-body {
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .modal-footer {
    background-color: #262c3c !important;
    border-top-color: #32394e !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .modal-title {
    color: #e3e8ef !important;
}

body[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* === BUTTON DÜZELTMELERİ === */
body[data-bs-theme="dark"] .btn-light {
    background-color: #32394e !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .btn-light:hover {
    background-color: #3d4558 !important;
    border-color: #3d4558 !important;
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .btn-secondary {
    background-color: #74788d !important;
    border-color: #74788d !important;
    color: #ffffff !important;
}

body[data-bs-theme="dark"] .btn-secondary:hover {
    background-color: #5f6372 !important;
    border-color: #5f6372 !important;
}

body[data-bs-theme="dark"] .btn-outline-secondary {
    color: #a6b0cf !important;
    border-color: #74788d !important;
}

body[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #74788d !important;
    border-color: #74788d !important;
    color: #ffffff !important;
}

/* === DROPDOWN DÜZELTMELERİ === */
body[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .dropdown-item {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .dropdown-item:hover,
body[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #262c3c !important;
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .dropdown-divider {
    border-top-color: #32394e !important;
}

/* === NAV TABS DÜZELTMELERİ === */
body[data-bs-theme="dark"] .nav-tabs {
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #a6b0cf !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

body[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: #32394e #32394e #2a3042 !important;
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: #556ee6 !important;
    background-color: #2a3042 !important;
    border-color: #32394e #32394e #2a3042 !important;
}

/* === BADGE DÜZELTMELERİ === */
body[data-bs-theme="dark"] .badge.bg-light {
    background-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #74788d !important;
    color: #ffffff !important;
}

/* === ALERT DÜZELTMELERİ === */
body[data-bs-theme="dark"] .alert-info {
    background-color: rgba(80, 165, 241, 0.15) !important;
    border-color: rgba(80, 165, 241, 0.3) !important;
    color: #50a5f1 !important;
}

body[data-bs-theme="dark"] .alert-success {
    background-color: rgba(52, 195, 143, 0.15) !important;
    border-color: rgba(52, 195, 143, 0.3) !important;
    color: #34c38f !important;
}

body[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(244, 184, 72, 0.15) !important;
    border-color: rgba(244, 184, 72, 0.3) !important;
    color: #f4b848 !important;
}

body[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(244, 106, 106, 0.15) !important;
    border-color: rgba(244, 106, 106, 0.3) !important;
    color: #f46a6a !important;
}

/* === LIST GROUP DÜZELTMELERİ === */
body[data-bs-theme="dark"] .list-group-item {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .list-group-item * {
    color: inherit;
}

body[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #262c3c !important;
}

body[data-bs-theme="dark"] .list-group-item.active {
    background-color: #556ee6 !important;
    border-color: #556ee6 !important;
    color: #ffffff !important;
}

body[data-bs-theme="dark"] .list-group-item.active * {
    color: #ffffff !important;
}

/* === BREADCRUMB DÜZELTMELERİ === */
body[data-bs-theme="dark"] .breadcrumb {
    background-color: #2a3042 !important;
}

body[data-bs-theme="dark"] .breadcrumb-item {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #74788d !important;
}

/* === PROGRESS BAR DÜZELTMELERİ === */
body[data-bs-theme="dark"] .progress {
    background-color: #262c3c !important;
}

/* === ACCORDION DÜZELTMELERİ === */
body[data-bs-theme="dark"] .accordion-item {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .accordion-button {
    background-color: #262c3c !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #556ee6 !important;
    color: #ffffff !important;
}

body[data-bs-theme="dark"] .accordion-body {
    background-color: #2a3042 !important;
    color: #a6b0cf !important;
}

/* === BORDER DÜZELTMELERİ === */
body[data-bs-theme="dark"] .border,
body[data-bs-theme="dark"] .border-top,
body[data-bs-theme="dark"] .border-bottom,
body[data-bs-theme="dark"] .border-start,
body[data-bs-theme="dark"] .border-end {
    border-color: #32394e !important;
}

/* === TEXT COLORS === */
body[data-bs-theme="dark"] .text-muted {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .text-dark {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .text-body {
    color: #a6b0cf !important;
}

/* === BACKGROUND COLORS === */
body[data-bs-theme="dark"] .bg-light {
    background-color: #262c3c !important;
}

body[data-bs-theme="dark"] .bg-white {
    background-color: #2a3042 !important;
}

body[data-bs-theme="dark"] .bg-body {
    background-color: #1a1d29 !important;
}

/* === SIDEBAR DÜZELTMELERİ === */
body[data-bs-theme="dark"] .vertical-menu {
    background-color: #2a3042 !important;
}

body[data-bs-theme="dark"] .metismenu li a {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .metismenu li a:hover {
    color: #ced4da !important;
}

/* === FOOTER DÜZELTMELERİ === */
body[data-bs-theme="dark"] .footer {
    background-color: #2a3042 !important;
    color: #a6b0cf !important;
    border-top-color: #32394e !important;
}

/* === CUSTOM SCROLLBAR === */
body[data-bs-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #262c3c;
}

body[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #32394e;
    border-radius: 4px;
}

body[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #3d4558;
}

/* === SIMPLEBAR DÜZELTMELERİ === */
body[data-bs-theme="dark"] .simplebar-scrollbar::before {
    background: #32394e !important;
}

body[data-bs-theme="dark"] .simplebar-scrollbar:hover::before {
    background: #3d4558 !important;
}

/* === TOASTR DÜZELTMELERİ === */
body[data-bs-theme="dark"] #toast-container > div {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5) !important;
}

body[data-bs-theme="dark"] .toast-success {
    background-color: #34c38f !important;
}

body[data-bs-theme="dark"] .toast-error {
    background-color: #f46a6a !important;
}

body[data-bs-theme="dark"] .toast-info {
    background-color: #50a5f1 !important;
}

body[data-bs-theme="dark"] .toast-warning {
    background-color: #f4b848 !important;
}

/* === HR DÜZELTMELERİ === */
body[data-bs-theme="dark"] hr {
    border-top-color: #32394e !important;
    opacity: 1 !important;
}

/* === SHADOW DÜZELTMELERİ === */
body[data-bs-theme="dark"] .shadow,
body[data-bs-theme="dark"] .shadow-sm,
body[data-bs-theme="dark"] .shadow-lg {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5) !important;
}

/* === SELECT2 DÜZELTMELERİ (varsa) === */
body[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-selection {
    background-color: #262c3c !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-dropdown {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-results__option {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-results__option--highlighted {
    background-color: #556ee6 !important;
    color: #ffffff !important;
}

/* === MINI STATS WIDGET DÜZELTMELERİ (Dashboard) === */
body[data-bs-theme="dark"] .mini-stats-wid .card-body {
    background-color: #2a3042 !important;
}

body[data-bs-theme="dark"] .avatar-title {
    background-color: rgba(85, 110, 230, 0.18) !important;
    color: #556ee6 !important;
}

/* === APEX CHARTS DÜZELTMELERİ === */
body[data-bs-theme="dark"] .apexcharts-canvas {
    background: transparent !important;
}

body[data-bs-theme="dark"] .apexcharts-text {
    fill: #a6b0cf !important;
}

body[data-bs-theme="dark"] .apexcharts-gridline {
    stroke: #32394e !important;
}

/* === STOK GİRİŞ SAYFASI ÖZEL DÜZELTMELERİ === */
body[data-bs-theme="dark"] .product-search-container {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .product-search-input {
    background-color: #262c3c !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .product-search-input::placeholder {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .search-icon {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .stock-entry-container {
    background-color: transparent !important;
}

body[data-bs-theme="dark"] .stock-left-panel,
body[data-bs-theme="dark"] .stock-right-panel {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .stores-section,
body[data-bs-theme="dark"] .shelves-section {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .section-header {
    background-color: #262c3c !important;
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .section-header h3 {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .store-item {
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .store-item:hover {
    background-color: #262c3c !important;
}

body[data-bs-theme="dark"] .store-item.active {
    background-color: rgba(85, 110, 230, 0.15) !important;
    border-left-color: #556ee6 !important;
}

body[data-bs-theme="dark"] .store-icon {
    background-color: #262c3c !important;
    color: #74788d !important;
}

body[data-bs-theme="dark"] .store-item.active .store-icon {
    background-color: rgba(85, 110, 230, 0.25) !important;
    color: #556ee6 !important;
}

body[data-bs-theme="dark"] .store-name {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .store-detail {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .btn-action {
    background-color: #262c3c !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .btn-action:hover {
    background-color: #32394e !important;
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .shelf-card {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .shelf-card:hover {
    border-color: #556ee6 !important;
}

body[data-bs-theme="dark"] .shelf-header {
    background-color: #262c3c !important;
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .shelf-name {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .shelf-code,
body[data-bs-theme="dark"] .shelf-description {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .empty-state {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .empty-state i {
    color: #32394e !important;
}

body[data-bs-theme="dark"] .empty-state p {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .empty-state small {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .loading-spinner {
    background-color: #2a3042 !important;
}

body[data-bs-theme="dark"] .loading-spinner span {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .page-title-box {
    background: linear-gradient(45deg, #556ee6, #7367f0) !important;
}

/* Search Suggestions */
body[data-bs-theme="dark"] .search-suggestions {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .search-result-item {
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .search-result-item:hover {
    background-color: #262c3c !important;
}

body[data-bs-theme="dark"] .product-info h6 {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .product-info small {
    color: #74788d !important;
}

/* Product Cards */
body[data-bs-theme="dark"] .product-card {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .product-card:hover {
    border-color: #556ee6 !important;
}

body[data-bs-theme="dark"] .product-detail h6 {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .detail-label {
    color: #74788d !important;
}

body[data-bs-theme="dark"] .detail-value {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .selected-product-item {
    background-color: #262c3c !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .quantity-input {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .quantity-btn {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .quantity-btn:hover {
    background-color: #32394e !important;
    border-color: #3d4558 !important;
}

/* Profit Info */
body[data-bs-theme="dark"] .profit-info {
    background-color: rgba(52, 195, 143, 0.1) !important;
    border-color: rgba(52, 195, 143, 0.2) !important;
}

body[data-bs-theme="dark"] .profit-item {
    border-top-color: rgba(52, 195, 143, 0.2) !important;
}

body[data-bs-theme="dark"] .profit-value {
    color: #34c38f !important;
}

/* Section Title */
body[data-bs-theme="dark"] .section-title {
    background-color: #262c3c !important;
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .section-title h6 {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .product-count {
    background-color: #32394e !important;
    color: #a6b0cf !important;
}

/* === RESPONSIVE DÜZELTMELERİ === */
@media (max-width: 768px) {
    body[data-bs-theme="dark"] .card {
        margin-bottom: 1rem;
    }
}

/* === NAVBAR / HEADER DÜZELTMELERİ === */
body[data-bs-theme="dark"] #page-topbar {
    background-color: #2a3042 !important;
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .navbar-header {
    background-color: #2a3042 !important;
}

body[data-bs-theme="dark"] .navbar-brand-box {
    background-color: #2a3042 !important;
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .navbar-brand-box .logo-dark {
    display: none !important;
}

body[data-bs-theme="dark"] .navbar-brand-box .logo-light {
    display: block !important;
}

body[data-bs-theme="dark"] .navbar-brand-box h4 {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .header-item {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .header-item:hover {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .noti-icon i {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .user-name-text {
    color: #ced4da !important;
}

/* === PAGE TITLE DÜZELTMELERİ === */
body[data-bs-theme="dark"] .page-title-box {
    background: linear-gradient(135deg, #2a3042 0%, #262c3c 100%) !important;
    border-bottom-color: #32394e !important;
}

body[data-bs-theme="dark"] .page-title {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .breadcrumb-item a {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .breadcrumb-item a:hover {
    color: #ced4da !important;
}

/* === STAT CARDS İYİLEŞTİRMELERİ === */
body[data-bs-theme="dark"] .mini-stats-wid {
    background-color: #2a3042 !important;
    border-color: #32394e !important;
}

body[data-bs-theme="dark"] .mini-stat-icon {
    color: #556ee6 !important;
}

body[data-bs-theme="dark"] .avatar-sm {
    background-color: rgba(85, 110, 230, 0.2) !important;
}

body[data-bs-theme="dark"] .font-size-24 {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .text-success {
    color: #34c38f !important;
}

body[data-bs-theme="dark"] .text-danger {
    color: #f46a6a !important;
}

/* === INPUT DÜZELTMELERİ === */
body[data-bs-theme="dark"] .form-control:focus,
body[data-bs-theme="dark"] .form-select:focus {
    background-color: #262c3c !important;
    border-color: #556ee6 !important;
    color: #ced4da !important;
    box-shadow: 0 0 0 0.2rem rgba(85, 110, 230, 0.25) !important;
}

body[data-bs-theme="dark"] .form-control:disabled,
body[data-bs-theme="dark"] .form-select:disabled {
    background-color: #1f2430 !important;
    color: #6c757d !important;
    opacity: 0.6;
}

/* === RIGHT SIDEBAR (Tema Seçici) DÜZELTMELERİ === */
body[data-bs-theme="dark"] .right-bar {
    background-color: #2a3042 !important;
    border-left-color: #32394e !important;
}

body[data-bs-theme="dark"] .right-bar .rightbar-title {
    background-color: #262c3c !important;
    border-bottom-color: #32394e !important;
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .right-bar h6 {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] .right-bar hr {
    border-top-color: #32394e !important;
}

/* === LINK DÜZELTMELERİ === */
body[data-bs-theme="dark"] a:not(.btn):not(.dropdown-item) {
    color: #6e84f1 !important;
}

body[data-bs-theme="dark"] a:not(.btn):not(.dropdown-item):hover {
    color: #8899f5 !important;
}

body[data-bs-theme="dark"] a.text-dark {
    color: #ced4da !important;
}

body[data-bs-theme="dark"] a.text-dark:hover {
    color: #ffffff !important;
}

body[data-bs-theme="dark"] a.text-muted {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] a.text-white {
    color: #ffffff !important;
}

/* === KONTRAST İYİLEŞTİRMELERİ === */
body[data-bs-theme="dark"] h1,
body[data-bs-theme="dark"] h2,
body[data-bs-theme="dark"] h3,
body[data-bs-theme="dark"] h4,
body[data-bs-theme="dark"] h5,
body[data-bs-theme="dark"] h6 {
    color: #e3e8ef !important;
}

body[data-bs-theme="dark"] p {
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] small {
    color: #8b93a7 !important;
}

body[data-bs-theme="dark"] span {
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] .text-white {
    color: #ffffff !important;
}

body[data-bs-theme="dark"] label {
    color: #b8c2db !important;
}

body[data-bs-theme="dark"] strong,
body[data-bs-theme="dark"] b {
    color: #e3e8ef !important;
}

body[data-bs-theme="dark"] div {
    color: #b8c2db;
}

/* Specific text classes */
body[data-bs-theme="dark"] .text-primary {
    color: #6e84f1 !important;
}

body[data-bs-theme="dark"] .text-secondary {
    color: #a6b0cf !important;
}

body[data-bs-theme="dark"] .text-info {
    color: #50a5f1 !important;
}

body[data-bs-theme="dark"] .text-warning {
    color: #f4b848 !important;
}

body[data-bs-theme="dark"] .font-size-11,
body[data-bs-theme="dark"] .font-size-12,
body[data-bs-theme="dark"] .font-size-13,
body[data-bs-theme="dark"] .font-size-14,
body[data-bs-theme="dark"] .font-size-15,
body[data-bs-theme="dark"] .font-size-16 {
    color: inherit !important;
}

/* === PRINT DÜZELTMELERİ === */
@media print {
    body[data-bs-theme="dark"] {
        background-color: white !important;
        color: black !important;
    }

    body[data-bs-theme="dark"] .card,
    body[data-bs-theme="dark"] .table,
    body[data-bs-theme="dark"] .form-control {
        background-color: white !important;
        color: black !important;
        border-color: #dee2e6 !important;
    }
}
