.theme-toggle{
  width:40px;
  height:40px;
  border:1px solid var(--border-color, #e2e8f0);
  background:transparent;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  cursor:pointer;
  padding:0;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover{
  background:#f8fafc;
  color:#1e293b;
}
.theme-toggle .material-icons-outlined{font-size:22px;line-height:1}
html[data-bs-theme="light"] .theme-icon-sun,
html:not([data-bs-theme]) .theme-icon-sun{display:none}
html[data-bs-theme="dark"] .theme-icon-moon{display:none}

html[data-bs-theme="dark"]{
  color-scheme:dark;
  --text-main:#e2e8f0;
  --text-muted:#94a3b8;
  --bg-body:#0b1220;
  --card-bg:#151c2c;
  --border-color:#2a3548;
  --primary-color:#f89d1d;
  --primary-dark:#e88612;
  --bs-body-bg:#151c2c;
  --bs-body-bg-2:#0b1220;
  --bs-body-color:#e2e8f0;
  --bs-heading-color:#f8fafc;
  --bs-border-color:#2a3548;
  --bs-secondary-bg:#1e293b;
}

html[data-bs-theme="dark"] body{
  background-color:var(--bg-body) !important;
  color:var(--text-main);
}

html[data-bs-theme="dark"] .theme-toggle{
  border-color:#334155;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .theme-toggle:hover{
  background:#1e293b;
  color:#fff;
}

html[data-bs-theme="dark"] .top-header .navbar{
  background:#111827 !important;
  border-bottom:1px solid #1f2937 !important;
  box-shadow:none;
}
html[data-bs-theme="dark"] .top-header .navbar .btn-toggle a,
html[data-bs-theme="dark"] .top-header .navbar .text-secondary{
  color:#cbd5e1 !important;
}

html[data-bs-theme="dark"] .balance-wrapper{
  background:#1e293b;
  border-color:#334155;
}
html[data-bs-theme="dark"] .balance-wrapper:hover{
  border-color:#475569;
  box-shadow:none;
}
html[data-bs-theme="dark"] .balance-icon-box{
  background:rgba(248,157,29,.14);
}
html[data-bs-theme="dark"] .user-profile-img{
  border-color:#1e293b;
  box-shadow:0 0 0 1px #334155;
}

html[data-bs-theme="dark"] .sidebar-wrapper,
html[data-bs-theme="dark"] .sidebar-wrapper .sidebar-header,
html[data-bs-theme="dark"] .sidebar-wrapper .sidebar-nav,
html[data-bs-theme="dark"] .sidebar-wrapper .sidebar-bottom{
  background-color:#111827 !important;
  border-color:#1f2937 !important;
}
html[data-bs-theme="dark"] .sidebar-bottom .bg-light{
  background:#1e293b !important;
  border-color:#334155 !important;
}
html[data-bs-theme="dark"] .sidebar-bottom .text-dark{
  color:#e2e8f0 !important;
}
html[data-bs-theme="dark"] .has-arrow .menu-title:after{
  border-left-color:#94a3b8;
  border-bottom-color:#94a3b8;
}

html[data-bs-theme="dark"] .main-wrapper{
  background:var(--bg-body);
}

html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dashboard-card,
html[data-bs-theme="dark"] .modern-card,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .accordion-item{
  background:var(--card-bg) !important;
  border-color:var(--border-color) !important;
  color:var(--text-main);
}
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer,
html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer{
  background-color:transparent;
  border-color:var(--border-color) !important;
  color:var(--text-main);
}
html[data-bs-theme="dark"] .modal-content{
  background:var(--card-bg);
  color:var(--text-main);
}

html[data-bs-theme="dark"] .bg-white{background-color:var(--card-bg) !important}
html[data-bs-theme="dark"] .bg-light{background-color:#1e293b !important}
html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-main,
html[data-bs-theme="dark"] .text-black{color:#e2e8f0 !important}
html[data-bs-theme="dark"] .text-muted{color:#94a3b8 !important}
html[data-bs-theme="dark"] .text-secondary{color:#94a3b8 !important}

html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-top,
html[data-bs-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-start,
html[data-bs-theme="dark"] .border-end{
  border-color:var(--border-color) !important;
}
html[data-bs-theme="dark"] hr{
  border-color:#334155;
  opacity:1;
}

html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .table > :not(caption) > * > *,
html[data-bs-theme="dark"] .table-modern,
html[data-bs-theme="dark"] .table-modern td,
html[data-bs-theme="dark"] .table-modern th{
  background-color:var(--card-bg) !important;
  color:var(--text-main) !important;
  border-color:var(--border-color) !important;
}
html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] .table-modern th{
  background-color:#0f172a !important;
  color:#94a3b8 !important;
}
html[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *{
  --bs-table-bg-type:rgba(255,255,255,.03);
  background-color:rgba(255,255,255,.03) !important;
  color:inherit;
}
html[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *{
  background-color:rgba(248,157,29,.08) !important;
  color:inherit;
}
html[data-bs-theme="dark"] .table-bordered{border-color:var(--border-color)}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .form-control-compact,
html[data-bs-theme="dark"] .dataTables_filter input,
html[data-bs-theme="dark"] .dataTables_length select{
  background-color:#0f172a;
  border-color:#334155;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus,
html[data-bs-theme="dark"] .form-control-compact:focus{
  background-color:#0f172a;
  border-color:#f89d1d;
  color:#e2e8f0;
  box-shadow:0 0 0 .2rem rgba(248,157,29,.18);
}
html[data-bs-theme="dark"] .form-control::placeholder{color:#64748b}

html[data-bs-theme="dark"] .dropdown-menu{
  background:#1e293b;
  border-color:#334155;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .dropdown-item{color:#e2e8f0}
html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .list-group-item-action:hover{
  background:#0f172a;
  color:#fff;
}
html[data-bs-theme="dark"] .list-group-item{
  background:transparent;
  color:#e2e8f0;
}

html[data-bs-theme="dark"] .btn-export,
html[data-bs-theme="dark"] .btn-white,
html[data-bs-theme="dark"] .btn-light,
html[data-bs-theme="dark"] .btn-action,
html[data-bs-theme="dark"] .dt-button{
  background:#1e293b !important;
  color:#cbd5e1 !important;
  border-color:#334155 !important;
}
html[data-bs-theme="dark"] .btn-export:hover,
html[data-bs-theme="dark"] .btn-white:hover,
html[data-bs-theme="dark"] .btn-light:hover{
  background:#0f172a !important;
  color:#fff !important;
}

html[data-bs-theme="dark"] .badge.bg-light,
html[data-bs-theme="dark"] .badge.bg-white{
  background:#334155 !important;
  color:#e2e8f0 !important;
}

html[data-bs-theme="dark"] .progress-thin{background-color:#0f172a}
html[data-bs-theme="dark"] .bg-soft-primary{background:rgba(248,157,29,.14) !important;color:#f89d1d !important}
html[data-bs-theme="dark"] .bg-soft-success{background:rgba(16,185,129,.14) !important;color:#34d399 !important}
html[data-bs-theme="dark"] .bg-soft-dark{background:#0f172a !important;color:#e2e8f0 !important}
html[data-bs-theme="dark"] .bg-soft-info{background:rgba(59,130,246,.14) !important;color:#93c5fd !important}

html[data-bs-theme="dark"] .breadcrumb-title,
html[data-bs-theme="dark"] .page-breadcrumb,
html[data-bs-theme="dark"] .breadcrumb-item,
html[data-bs-theme="dark"] .breadcrumb-item.active{
  color:#94a3b8;
}
html[data-bs-theme="dark"] .pagination .page-link{
  background:#151c2c;
  border-color:#334155;
  color:#cbd5e1;
}
html[data-bs-theme="dark"] .pagination .page-item.active .page-link{
  background:#f89d1d;
  border-color:#f89d1d;
  color:#fff;
}

html[data-bs-theme="dark"] .dataTables_wrapper,
html[data-bs-theme="dark"] .dataTables_info,
html[data-bs-theme="dark"] .dataTables_length,
html[data-bs-theme="dark"] .dataTables_filter,
html[data-bs-theme="dark"] .dataTables_paginate{
  color:#94a3b8;
}

html[data-bs-theme="dark"] .swal2-popup{
  background:#1e293b;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .swal2-title,
html[data-bs-theme="dark"] .swal2-content,
html[data-bs-theme="dark"] .swal2-html-container{
  color:#e2e8f0;
}

html[data-bs-theme="dark"] .apexcharts-canvas,
html[data-bs-theme="dark"] .apexcharts-svg,
html[data-bs-theme="dark"] .apexcharts-inner{
  background:transparent !important;
}
html[data-bs-theme="dark"] .apexcharts-tooltip{
  background:#1e293b !important;
  color:#e2e8f0 !important;
  border-color:#334155 !important;
}
html[data-bs-theme="dark"] .apexcharts-gridline{stroke:#334155 !important}
html[data-bs-theme="dark"] .apexcharts-xaxis-label,
html[data-bs-theme="dark"] .apexcharts-yaxis-label,
html[data-bs-theme="dark"] .apexcharts-legend-text{
  fill:#94a3b8 !important;
  color:#94a3b8 !important;
}

html[data-bs-theme="dark"] .customer-card-hover:hover{
  background-color:rgba(248,157,29,.08) !important;
}
html[data-bs-theme="dark"] .product-row:hover{
  background-color:#1e293b !important;
}
html[data-bs-theme="dark"] .quantity-control{
  background:#0f172a;
  border-color:#334155;
}
html[data-bs-theme="dark"] .quantity-input,
html[data-bs-theme="dark"] .quantity-btn{
  color:#e2e8f0;
}

html[data-bs-theme="dark"] .shadow,
html[data-bs-theme="dark"] .shadow-sm{
  box-shadow:0 10px 30px rgba(0,0,0,.28) !important;
}

html[data-bs-theme="dark"] .welcome-header .badge.bg-white{
  background:#fff !important;
  color:#1a237e !important;
}

html[data-bs-theme="dark"] .desk-page{color:#e2e8f0}
html[data-bs-theme="dark"] .desk-kpi,
html[data-bs-theme="dark"] .desk-box{
  background:#151c2c;
  border-color:#2a3548;
}
html[data-bs-theme="dark"] .desk-row{
  border-bottom-color:#1f2937;
  color:#e2e8f0;
}
html[data-bs-theme="dark"] .desk-row:hover{color:#fdba74}
html[data-bs-theme="dark"] .desk-type-lisans{background:rgba(37,99,235,.18);color:#93c5fd}
html[data-bs-theme="dark"] .desk-type-yazarkasa{background:rgba(248,157,29,.18);color:#fdba74}
html[data-bs-theme="dark"] .desk-kicker{color:#94a3b8}
html[data-bs-theme="dark"] .dropdown-notify a.text-dark{color:#e2e8f0 !important}

html[data-bs-theme="dark"]{
  --text-dark:#e2e8f0;
  --text-gray:#94a3b8;
  --border-light:#2a3548;
  --primary-soft:rgba(248,157,29,.12);
  --bs-table-bg:#151c2c;
  --bs-table-color:#e2e8f0;
  --bs-table-striped-bg:rgba(255,255,255,.03);
  --bs-table-hover-bg:rgba(248,157,29,.1);
  --bs-table-hover-color:#e2e8f0;
  --bs-body-color:#e2e8f0;
}

html[data-bs-theme="dark"] .price-item,
html[data-bs-theme="dark"] .card-modern,
html[data-bs-theme="dark"] .form-container,
html[data-bs-theme="dark"] .log-card,
html[data-bs-theme="dark"] .wallet-widget,
html[data-bs-theme="dark"] .payment-wrapper .form-container{
  background:var(--card-bg) !important;
  background-color:var(--card-bg) !important;
  border-color:var(--border-color) !important;
  color:var(--text-main);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}

html[data-bs-theme="dark"] .price-item:hover{
  border-color:#f89d1d !important;
  box-shadow:0 12px 28px rgba(0,0,0,.32);
}
html[data-bs-theme="dark"] .item-info h6{color:#e2e8f0 !important}
html[data-bs-theme="dark"] .item-info p{color:#94a3b8 !important}
html[data-bs-theme="dark"] .item-icon{
  background:rgba(248,157,29,.14) !important;
  color:#f89d1d !important;
}
html[data-bs-theme="dark"] .category-header{border-bottom-color:#334155 !important}
html[data-bs-theme="dark"] .category-header h5{color:#cbd5e1 !important}

html[data-bs-theme="dark"] .dealer-card-hover:hover,
html[data-bs-theme="dark"] .dealer-card-hover:hover > *,
html[data-bs-theme="dark"] .customer-card-hover:hover,
html[data-bs-theme="dark"] .customer-card-hover:hover > *,
html[data-bs-theme="dark"] .table-custom tbody tr:hover,
html[data-bs-theme="dark"] .table-custom tbody tr:hover > *{
  background-color:rgba(248,157,29,.1) !important;
  color:#e2e8f0 !important;
}

html[data-bs-theme="dark"] .table-custom th,
html[data-bs-theme="dark"] .table-custom thead th{
  background-color:#0f172a !important;
  color:#94a3b8 !important;
  border-color:#2a3548 !important;
}
html[data-bs-theme="dark"] .table-custom td{
  background-color:transparent !important;
  color:#e2e8f0 !important;
  border-color:#2a3548 !important;
}

html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] .compact-label,
html[data-bs-theme="dark"] .field-container label{
  color:#cbd5e1 !important;
}
html[data-bs-theme="dark"] .input-group-text{
  background-color:#0f172a !important;
  border-color:#334155 !important;
  color:#94a3b8 !important;
}
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .field-container input,
html[data-bs-theme="dark"] .field-container select{
  background-color:#0f172a !important;
  border-color:#334155 !important;
  color:#e2e8f0 !important;
}
html[data-bs-theme="dark"] .nav-modern{
  border-bottom-color:#2a3548 !important;
}
html[data-bs-theme="dark"] .wallet-widget{
  background:#0f172a !important;
}
html[data-bs-theme="dark"] .wallet-widget::after{color:rgba(255,255,255,.06)}
html[data-bs-theme="dark"] .profile-avatar,
html[data-bs-theme="dark"] .profile-initials{
  border-color:#151c2c !important;
  background:#1e293b;
}
html[data-bs-theme="dark"] .info-icon{
  background:rgba(248,157,29,.14);
  color:#f89d1d;
}
html[data-bs-theme="dark"] .section-title{
  color:#f89d1d;
  border-bottom-color:#2a3548;
}
html[data-bs-theme="dark"] .alert-warning{
  background:#3b2a12;
  border-color:#854d0e;
  color:#fcd34d;
}
html[data-bs-theme="dark"] .btn-close{filter:invert(1) grayscale(1)}

.theme-toggle--login{
  position:absolute;
  top:24px;
  right:24px;
  z-index:30;
}
.theme-toggle .bi{font-size:1.15rem;line-height:1}
@media (max-width:992px){
  .theme-toggle--login{top:14px;right:14px}
}
