html.theme-dark {
    color-scheme: dark;
    --dark-color: #e5e7eb;
    --light-color: #111827;
    --primary-color: #60a5fa;
    --primary: #ff9800;
    --primary-dark: #f57c00;
    --success-color: #ff9800;
    --info-color: #ff9800;
    --arc-secondary: #ff9800;
    --light: #0f172a;
    --lighter: #1f2937;
    --secondary: #e5e7eb;
    --gray: #9ca3af;
    --gray-light: #374151;
    --gray-border: #4b5563;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html.theme-dark body {
    background-color: #0f172a;
    color: #e5e7eb;
}

html.theme-dark .header,
html.theme-dark .header-mobile,
html.theme-dark .mobile-second-nav,
html.theme-dark .wrapper,
html.theme-dark .content,
html.theme-dark #kt_content {
    background-color: #0f172a !important;
    color: #e5e7eb;
}

html.theme-dark .aside,
html.theme-dark .aside-menu,
html.theme-dark .aside-menu-wrapper,
html.theme-dark .brand,
html.theme-dark .perfil-box {
    background-color: #111827 !important;
}

html.theme-dark .card,
html.theme-dark .modal-content,
html.theme-dark .dropdown-menu,
html.theme-dark .symbol-label,
html.theme-dark .menu-submenu,
html.theme-dark .bg-white,
html.theme-dark .bg-light,
html.theme-dark .bg-light-primary,
html.theme-dark .bg-light-success,
html.theme-dark .bg-light-warning,
html.theme-dark .bg-light-danger,
html.theme-dark .table,
html.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

html.theme-dark .card-header,
html.theme-dark .card-footer,
html.theme-dark .table thead th,
html.theme-dark .table td,
html.theme-dark .table th,
html.theme-dark .dropdown-item,
html.theme-dark .modal-header,
html.theme-dark .modal-footer {
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark .text-dark,
html.theme-dark .text-dark-50,
html.theme-dark .text-dark-75,
html.theme-dark .text-muted,
html.theme-dark .text-body,
html.theme-dark .text-black,
html.theme-dark .menu-text,
html.theme-dark .menu-link,
html.theme-dark label,
html.theme-dark .navi-text,
html.theme-dark .dropdown-item {
    color: #d1d5db !important;
}

html.theme-dark .menu-item-active > .menu-link,
html.theme-dark .menu-item-open > .menu-link {
    background-color: #374151 !important;
}

html.theme-dark .menu-bullet span,
html.theme-dark .svg-icon svg g [fill] {
    fill: #d1d5db !important;
}

html.theme-dark .form-control,
html.theme-dark .custom-select,
html.theme-dark .input-group-text,
html.theme-dark .select2-selection,
html.theme-dark .select2-dropdown,
html.theme-dark .select2-search__field,
html.theme-dark textarea,
html.theme-dark input,
html.theme-dark select {
    background-color: #111827 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

html.theme-dark .form-control:focus,
html.theme-dark .custom-select:focus,
html.theme-dark .select2-selection:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

html.theme-dark .table-hover tbody tr:hover,
html.theme-dark .dropdown-item:hover {
    background-color: #374151 !important;
}

html.theme-dark .btn-light,
html.theme-dark .btn.btn-light,
html.theme-dark .btn-clean {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark .btn-light:hover,
html.theme-dark .btn.btn-light:hover,
html.theme-dark .btn-clean:hover {
    background-color: #374151 !important;
    color: #ffffff !important;
}

html.theme-dark .empresa-info {
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
}

html.theme-dark .empresa-info:hover {
    background-color: #374151 !important;
}

html.theme-dark .empresa-info i,
html.theme-dark .empresa-info label {
    color: #e5e7eb !important;
}

html.theme-dark .aside-menu .menu-nav > .menu-item > .menu-link:hover,
html.theme-dark .aside-menu .menu-nav > .menu-item > .menu-submenu .menu-subnav > .menu-item > .menu-link:hover {
    color: #ff9800 !important;
}

html.theme-dark .burger-icon span,
html.theme-dark .burger-icon span:before,
html.theme-dark .burger-icon span:after {
    background: #ff9800 !important;
}

html.theme-dark .mobile-second-nav {
    background: linear-gradient(135deg, #ff9800 0%, #187de4 100%) !important;
}

html.theme-dark .dropdown-header {
    background: #ff9800 !important;
}

html.theme-dark .text-success,
html.theme-dark .text-success i,
html.theme-dark .label-success,
html.theme-dark .badge-success {
    color: #ff9800 !important;
}

html.theme-dark .bg-success,
html.theme-dark .btn-success,
html.theme-dark .label-success,
html.theme-dark .badge-success {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #FFF !important;
}

html.theme-dark .btn-success:hover,
html.theme-dark .btn-success:focus,
html.theme-dark .btn-success:active {
    background-color: #f57c00 !important;
    border-color: #f57c00 !important;
}

html.theme-dark .border-success,
html.theme-dark .bgi-no-repeat[style*="00e78c"] {
    border-color: #ff9800 !important;
}

html.theme-dark .svg-icon-success svg g [fill],
html.theme-dark .svg-icon-success svg [fill] {
    fill: #ff9800 !important;
}

html.theme-dark .navbar,
html.theme-dark .navbar-laravel {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

html.theme-dark .nav-link,
html.theme-dark .navbar-brand {
    color: #d1d5db !important;
}

html.theme-dark .nav-tabs {
    border-bottom-color: #374151 !important;
}

html.theme-dark .nav-tabs .nav-link.active,
html.theme-dark .nav-tabs .nav-item.show .nav-link {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark hr,
html.theme-dark .border,
html.theme-dark [class*="border-"] {
    border-color: #374151 !important;
}

html.theme-dark .page-link {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.theme-dark [style*="background: #fff"],
html.theme-dark [style*="background:#fff"],
html.theme-dark [style*="background-color: #fff"],
html.theme-dark [style*="background-color:#fff"],
html.theme-dark [style*="background: white"],
html.theme-dark [style*="background-color: white"],
html.theme-dark [style*="background: rgb(255, 255, 255)"],
html.theme-dark [style*="background-color: rgb(255, 255, 255)"],
html.theme-dark [style*="background: #ffffff"],
html.theme-dark [style*="background-color: #ffffff"] {
    background: #1f2937 !important;
}

html.theme-dark [style*="background-color: #f8f9fa"],
html.theme-dark [style*="background-color:#f8f9fa"],
html.theme-dark [style*="background: #f8f9fa"],
html.theme-dark [style*="background:#f8f9fa"],
html.theme-dark [style*="background-color: #EEF0F8"],
html.theme-dark [style*="background-color:#EEF0F8"] {
    background: #1f2937 !important;
}

html.theme-dark [style*="color: #000"],
html.theme-dark [style*="color:#000"],
html.theme-dark [style*="color: black"],
html.theme-dark [style*="color: #111"],
html.theme-dark [style*="color: #181c32"],
html.theme-dark [style*="color:#3699FF"],
html.theme-dark [style*="color: #3699FF"],
html.theme-dark [style*="color:#666"],
html.theme-dark [style*="color: #666"],
html.theme-dark [style*="color:#333"],
html.theme-dark [style*="color: #333"],
html.theme-dark [style*="color:#495057"],
html.theme-dark [style*="color: #495057"],
html.theme-dark [style*="color:#6c757d"],
html.theme-dark [style*="color: #6c757d"] {
    color: #e5e7eb !important;
}

html.theme-dark [style*="color:#00e78c"],
html.theme-dark [style*="color: #00e78c"],
html.theme-dark [style*="color:#00E78C"],
html.theme-dark [style*="color: #00E78C"] {
    color: #ff9800 !important;
}

html.theme-dark [style*="background:#00e78c"],
html.theme-dark [style*="background: #00e78c"],
html.theme-dark [style*="background:#00E78C"],
html.theme-dark [style*="background: #00E78C"],
html.theme-dark [style*="background-color:#00e78c"],
html.theme-dark [style*="background-color: #00e78c"],
html.theme-dark [style*="background-color:#00E78C"],
html.theme-dark [style*="background-color: #00E78C"] {
    background: #ff9800 !important;
    color: #e5e7eb !important;
}

html.theme-dark [style*="linear-gradient"][style*="00e78c"],
html.theme-dark [style*="linear-gradient"][style*="00E78C"] {
    background: linear-gradient(135deg, #ff9800 0%, #187de4 100%) !important;
}

html.theme-dark [style*="border-color:#00e78c"],
html.theme-dark [style*="border-color: #00e78c"],
html.theme-dark [style*="border-color:#00E78C"],
html.theme-dark [style*="border-color: #00E78C"],
html.theme-dark [style*="border: 1px solid #00e78c"],
html.theme-dark [style*="border:1px solid #00e78c"],
html.theme-dark [style*="border: 1px solid #00E78C"],
html.theme-dark [style*="border:1px solid #00E78C"] {
    border-color: #ff9800 !important;
}

html.theme-dark [style*="fill:#00e78c"],
html.theme-dark [style*="fill: #00e78c"],
html.theme-dark [style*="fill:#00E78C"],
html.theme-dark [style*="fill: #00E78C"] {
    fill: #ff9800 !important;
}

html.theme-dark [style*="rgba(0, 231, 140"],
html.theme-dark [style*="rgba(0,231,140"] {
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.25) !important;
}

html.theme-dark [style*="border-color: #e"],
html.theme-dark [style*="border-color:#e"],
html.theme-dark [style*="border: 1px solid #e"],
html.theme-dark [style*="border:1px solid #e"] {
    border-color: #374151 !important;
}

html.theme-dark .swal-modal {
    background-color: #1f2937;
    color: #e5e7eb;
}

html.theme-dark .swal-text,
html.theme-dark .swal-title {
    color: #e5e7eb;
}

html.theme-dark .user-header,
html.theme-dark .main-card,
html.theme-dark .metric-card,
html.theme-dark .dashboard-header,
html.theme-dark .filter-card,
html.theme-dark .stat-card,
html.theme-dark .chart-card,
html.theme-dark .form-section,
html.theme-dark .form-card,
html.theme-dark .detalhes-conta,
html.theme-dark .formulario-pagamento,
html.theme-dark .resumo-card,
html.theme-dark .conta-card,
html.theme-dark .total-categoria,
html.theme-dark .cf-kpi,
html.theme-dark .os-card,
html.theme-dark .filter-card,
html.theme-dark .page-header,
html.theme-dark .erp-card,
html.theme-dark .erp-relatorio-card,
html.theme-dark .client-card,
html.theme-dark .info-card,
html.theme-dark .value-card {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

html.theme-dark .topbar .theme-toggle-btn,
html.theme-dark .topbar button[data-theme-toggle],
html.theme-dark #kt_header_mobile .theme-toggle-btn {
    color: #ff9800 !important;
    border-color: #ff9800 !important;
}

html.theme-dark .topbar .theme-toggle-btn i,
html.theme-dark .topbar button[data-theme-toggle] i,
html.theme-dark #kt_header_mobile .theme-toggle-btn i {
    color: #ff9800 !important;
}

html.theme-dark .topbar button[data-bs-toggle="dropdown"] .la-cog,
html.theme-dark #kt_header_mobile button[data-bs-toggle="dropdown"] .la-cog,
html.theme-dark #kt_header_mobile .la-cog.text-primary {
    color: #ff9800 !important;
}

.brand-logo .logo-dark {
    display: none;
}

html.theme-dark .brand-logo .logo-light {
    display: none !important;
}

html.theme-dark .brand-logo .logo-dark {
    display: inline-block !important;
}

/* Keep toggle visible when sidebar is minimized. */
.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo .logo-light,
.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo .logo-dark {
    display: none !important;
}

html.theme-dark .brand .brand-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 2;
}

html.theme-dark #kt_aside_toggle .svg-icon svg g [fill] {
    fill: #ff9800 !important;
}

.theme-toggle-btn {
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.04);
}
