/* =========================================================
   FastTime appearance (light / dark)
   ========================================================= */

html[data-ft-theme="dark"] {
    color-scheme: dark;
    --ft-ink: #e8edf5;
    --ft-muted: #9aa8bc;
    --ft-surface: #1a2332;
    --ft-surface-2: #243044;
    --ft-surface-3: #121820;
    --ft-border: rgba(255, 255, 255, 0.1);
    --ft-border-soft: rgba(255, 255, 255, 0.06);
    --section-bg: rgba(255, 255, 255, 0.04);
    --bs-outline-primary: rgba(255, 255, 255, 0.08);
    --bs-outline-info: rgba(255, 255, 255, 0.08);
    --bs-body-bg: #0f1419;
    --bs-body-color: #e8edf5;
    --bs-light: #243044;
    --bs-light-rgb: 36, 48, 68;
    --bs-white: #1a2332;
    --bs-white-rgb: 26, 35, 50;
    --bs-secondary-color: #9aa8bc;
    --bs-border-color: rgba(255, 255, 255, 0.1);
    --bs-tertiary-bg: #121820;
    --bs-secondary-bg: #1a2332;
}

/* Toggle button */
.ft-appearance-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 77, 64, 0.14);
    background: #fff;
    color: var(--ft-navy);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ft-appearance-toggle:hover {
    border-color: var(--ft-yellow);
    color: var(--ft-navy);
    transform: translateY(-1px);
}

.ft-appearance-toggle--nav {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    font-size: 0.95rem;
}

.ft-appearance-toggle--sidebar {
    width: calc(100% - 1.5rem);
    margin: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.ft-appearance-toggle--floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    width: 2.5rem;
    height: 2.5rem;
    box-shadow: var(--ft-shadow-sm, 0 8px 24px rgba(0, 77, 64, 0.1));
}

.ft-appearance-icon--light,
.ft-appearance-label--light {
    display: none;
}

html[data-ft-theme="dark"] .ft-appearance-icon--dark,
html[data-ft-theme="dark"] .ft-appearance-label--dark {
    display: none;
}

html[data-ft-theme="dark"] .ft-appearance-icon--light,
html[data-ft-theme="dark"] .ft-appearance-label--light {
    display: inline;
}

html[data-ft-theme="dark"] .ft-appearance-toggle {
    background: #243044;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ft-yellow);
}

html[data-ft-theme="dark"] .ft-appearance-toggle:hover {
    background: #2f4a44;
    border-color: var(--ft-teal);
    color: var(--ft-teal);
}

/* =========================================================
   Admin / merchant dashboard
   ========================================================= */
html[data-ft-theme="dark"] body,
html[data-ft-theme="dark"] body.ft-dark {
    background-color: var(--ft-surface-3) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .main-content,
html[data-ft-theme="dark"] .dashboard-ecommerce,
html[data-ft-theme="dark"] .dashboard-main-wrapper,
html[data-ft-theme="dark"] .dashboard-content,
html[data-ft-theme="dark"] .container-fluid {
    background-color: transparent !important;
    color: var(--ft-ink);
}

/* Bootstrap utility backgrounds */
html[data-ft-theme="dark"] .bg-white,
html[data-ft-theme="dark"] .bg-light,
html[data-ft-theme="dark"] .card-footer.bg-white,
html[data-ft-theme="dark"] .navbar-light.bg-light {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .text-dark {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .border,
html[data-ft-theme="dark"] .border-bottom,
html[data-ft-theme="dark"] .border-top,
html[data-ft-theme="dark"] .border-start,
html[data-ft-theme="dark"] .border-end,
html[data-ft-theme="dark"] hr {
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .card,
html[data-ft-theme="dark"] .card-body,
html[data-ft-theme="dark"] .card-header,
html[data-ft-theme="dark"] .card-footer,
html[data-ft-theme="dark"] .auth-boxs,
html[data-ft-theme="dark"] .auth-boxs .card-footer {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border-soft) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .pageheader-title,
html[data-ft-theme="dark"] .pageheader-text,
html[data-ft-theme="dark"] .card-title,
html[data-ft-theme="dark"] .card-header-title,
html[data-ft-theme="dark"] .card-subtitle,
html[data-ft-theme="dark"] h1,
html[data-ft-theme="dark"] h2,
html[data-ft-theme="dark"] h3,
html[data-ft-theme="dark"] h4,
html[data-ft-theme="dark"] h5,
html[data-ft-theme="dark"] h6,
html[data-ft-theme="dark"] label,
html[data-ft-theme="dark"] .form-label,
html[data-ft-theme="dark"] .custom-control-label,
html[data-ft-theme="dark"] .breadcrumb-item,
html[data-ft-theme="dark"] .breadcrumb-item.active,
html[data-ft-theme="dark"] .nav-divider,
html[data-ft-theme="dark"] .metric-value,
html[data-ft-theme="dark"] .metric-label,
html[data-ft-theme="dark"] .figure-title,
html[data-ft-theme="dark"] .notification-title {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .text-muted,
html[data-ft-theme="dark"] .breadcrumb-item + .breadcrumb-item::before,
html[data-ft-theme="dark"] p,
html[data-ft-theme="dark"] .splash-description,
html[data-ft-theme="dark"] .page-breadcrumb .breadcrumb-item.active,
html[data-ft-theme="dark"] .notification-info .notification-date {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link) {
    color: #9ec5fe;
}

html[data-ft-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):hover {
    color: var(--ft-yellow);
}

html[data-ft-theme="dark"] .form-control,
html[data-ft-theme="dark"] .custom-select,
html[data-ft-theme="dark"] select.form-control,
html[data-ft-theme="dark"] textarea.form-control,
html[data-ft-theme="dark"] .custom-file-label,
html[data-ft-theme="dark"] .select2-container--default .select2-selection--single,
html[data-ft-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-ft-theme="dark"] .select2-dropdown,
html[data-ft-theme="dark"] .select2-search__field {
    background-color: var(--ft-surface-3) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .form-control:focus,
html[data-ft-theme="dark"] .select2-container--default.select2-container--open .select2-selection--single {
    background-color: var(--ft-surface-3) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .select2-container--default .select2-results__option--selected {
    background-color: var(--ft-surface-2) !important;
}

html[data-ft-theme="dark"] .table,
html[data-ft-theme="dark"] .table td,
html[data-ft-theme="dark"] .table th,
html[data-ft-theme="dark"] .table thead th,
html[data-ft-theme="dark"] .table-light,
html[data-ft-theme="dark"] .table-light td,
html[data-ft-theme="dark"] .table-light th,
html[data-ft-theme="dark"] .thead-light th {
    color: var(--ft-ink) !important;
    background-color: transparent !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .table-striped tbody tr:nth-of-type(odd),
html[data-ft-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td,
html[data-ft-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

html[data-ft-theme="dark"] .table-hover tbody tr:hover,
html[data-ft-theme="dark"] .table-hover > tbody > tr:hover > td,
html[data-ft-theme="dark"] .table-hover > tbody > tr:hover > th {
    background-color: rgba(245, 158, 11, 0.08) !important;
}

html[data-ft-theme="dark"] .dataTables_wrapper .dataTables_length,
html[data-ft-theme="dark"] .dataTables_wrapper .dataTables_filter,
html[data-ft-theme="dark"] .dataTables_wrapper .dataTables_info,
html[data-ft-theme="dark"] .dataTables_wrapper .dataTables_paginate {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .dropdown-menu,
html[data-ft-theme="dark"] .dropdown-menu:not(.nav-user-dropdown) {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border) !important;
}

html[data-ft-theme="dark"] .dropdown-menu .dropdown-item,
html[data-ft-theme="dark"] .dropdown-menu:not(.nav-user-dropdown) .dropdown-item {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .dropdown-menu .dropdown-item:hover,
html[data-ft-theme="dark"] .dropdown-menu .dropdown-item:focus,
html[data-ft-theme="dark"] .dropdown-menu .dropdown-item.active,
html[data-ft-theme="dark"] .dropdown-menu:not(.nav-user-dropdown) .dropdown-item:hover,
html[data-ft-theme="dark"] .dropdown-menu:not(.nav-user-dropdown) .dropdown-item:focus,
html[data-ft-theme="dark"] .dropdown-menu:not(.nav-user-dropdown) .dropdown-item.active {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .modal-content {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink);
    border-color: var(--ft-border) !important;
}

html[data-ft-theme="dark"] .modal-header,
html[data-ft-theme="dark"] .modal-footer {
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .close,
html[data-ft-theme="dark"] .btn-close {
    color: var(--ft-ink);
    opacity: 0.75;
}

html[data-ft-theme="dark"] .nav-left-sidebar,
html[data-ft-theme="dark"] .sidebar-dark.nav-left-sidebar {
    background-color: var(--ft-surface-3) !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .nav-left-sidebar .navbar-nav .nav-link,
html[data-ft-theme="dark"] .sidebar-dark.nav-left-sidebar .navbar-nav .nav-link,
html[data-ft-theme="dark"] .nav-left-sidebar .submenu .nav .nav-item .nav-link {
    color: #b8c4d4 !important;
}

html[data-ft-theme="dark"] .nav-left-sidebar .navbar-nav .nav-link:hover,
html[data-ft-theme="dark"] .nav-left-sidebar .navbar-nav .nav-link.active,
html[data-ft-theme="dark"] .nav-left-sidebar .navbar-nav .nav-link:focus,
html[data-ft-theme="dark"] .sidebar-dark.nav-left-sidebar .navbar-nav .nav-link:hover,
html[data-ft-theme="dark"] .sidebar-dark.nav-left-sidebar .navbar-nav .nav-link.active,
html[data-ft-theme="dark"] .sidebar-dark.nav-left-sidebar .navbar-nav .nav-link:focus,
html[data-ft-theme="dark"] .nav-left-sidebar .submenu .nav .nav-item .nav-link:hover,
html[data-ft-theme="dark"] .nav-left-sidebar .submenu .nav .nav-item .nav-link.active {
    color: #fff !important;
    background-color: rgba(245, 158, 11, 0.14) !important;
}

html[data-ft-theme="dark"] .nav-left-sidebar .nav-link:hover i,
html[data-ft-theme="dark"] .nav-left-sidebar .nav-link.active i,
html[data-ft-theme="dark"] .sidebar-dark.nav-left-sidebar .nav-link:hover i,
html[data-ft-theme="dark"] .sidebar-dark.nav-left-sidebar .nav-link.active i {
    color: var(--ft-yellow) !important;
}

html[data-ft-theme="dark"] .dashboard-header .navbar,
html[data-ft-theme="dark"] .navbar.navbar-light.fixed-top,
html[data-ft-theme="dark"] .navbar.navbar-light.bg-light.fixed-top {
    background-color: var(--ft-surface-3) !important;
    border-bottom: 1px solid var(--ft-border-soft);
}

html[data-ft-theme="dark"] .dashboard-header .navbar .nav-link,
html[data-ft-theme="dark"] .dashboard-header .navbar .dropdown-item,
html[data-ft-theme="dark"] .dashboard-header .navbar .dropdown-toggle,
html[data-ft-theme="dark"] .navbar.navbar-light .navbar-nav .nav-link {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .notification-dropdown,
html[data-ft-theme="dark"] .notification-title,
html[data-ft-theme="dark"] .list-group-item,
html[data-ft-theme="dark"] .list-group-item-action,
html[data-ft-theme="dark"] .notification-list .list-group-item,
html[data-ft-theme="dark"] .notification-list .list-group-item.active,
html[data-ft-theme="dark"] .notification-list .list-group-item-action:hover,
html[data-ft-theme="dark"] .profile-list-group-item {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .pagination .page-link {
    background-color: var(--ft-surface);
    border-color: var(--ft-border);
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: var(--ft-surface-3);
    color: var(--ft-muted);
}

html[data-ft-theme="dark"] .input-group-text {
    background-color: var(--ft-surface-2);
    border-color: var(--ft-border);
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] .footer,
html[data-ft-theme="dark"] .footer.fixed-bottom {
    background-color: var(--ft-surface-3) !important;
    border-color: var(--ft-border-soft) !important;
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .footer-text,
html[data-ft-theme="dark"] .footer .footer-links a {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .page-breadcrumb .breadcrumb {
    border-bottom-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .page-breadcrumb .breadcrumb-link {
    color: var(--ft-yellow) !important;
}

html[data-ft-theme="dark"] .nav-tabs {
    border-bottom-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .nav-tabs .nav-link {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .nav-tabs .nav-link.active,
html[data-ft-theme="dark"] .nav-tabs .nav-item.show .nav-link {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border-soft) var(--ft-border-soft) var(--ft-surface) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .tab-content,
html[data-ft-theme="dark"] .tab-pane {
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] .accordion-item,
html[data-ft-theme="dark"] .accordion-button {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--ft-surface-2) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .alert-light,
html[data-ft-theme="dark"] .alert-secondary {
    background-color: var(--ft-surface-2) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .badge-light,
html[data-ft-theme="dark"] .badge-secondary {
    background-color: var(--ft-surface-2) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .color-theme-card {
    background: var(--ft-surface) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .color-theme-card.is-active {
    border-color: var(--ft-yellow) !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}

html[data-ft-theme="dark"] .color-theme-desc {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .swal2-popup,
html[data-ft-theme="dark"] .swal2-title,
html[data-ft-theme="dark"] .swal2-html-container {
    background: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] #toast-container > .toast {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .datepicker-dropdown,
html[data-ft-theme="dark"] .datepicker table tr td,
html[data-ft-theme="dark"] .datepicker table tr th {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .login-dashboard-main-wrapper,
html[data-ft-theme="dark"] .splash-container .card {
    background: transparent !important;
}

html[data-ft-theme="dark"] .login-dashboard-main-wrapper {
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
        linear-gradient(180deg, #0f1419 0%, #121820 100%) !important;
}

html[data-ft-theme="dark"] .ft-auth .card,
html[data-ft-theme="dark"] .ft-auth .card-header,
html[data-ft-theme="dark"] .ft-auth .card-body,
html[data-ft-theme="dark"] .ft-auth .card-footer {
    background-color: var(--ft-surface) !important;
}

/* =========================================================
   Dashboard — stat cards, charts, calendar text
   ========================================================= */
html[data-ft-theme="dark"] .ecommerce-widget,
html[data-ft-theme="dark"] .dashboard-content,
html[data-ft-theme="dark"] .dashboard-filter,
html[data-ft-theme="dark"] .header-summery {
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] .text-muted {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .text-secondary {
    color: #a8b4c4 !important;
}

html[data-ft-theme="dark"] .text-primary:not(.btn):not(.badge) {
    color: #7eb8ff !important;
}

html[data-ft-theme="dark"] .font-weight-bold,
html[data-ft-theme="dark"] .display-7,
html[data-ft-theme="dark"] .legend-text,
html[data-ft-theme="dark"] .profile-list-group-item,
html[data-ft-theme="dark"] .profile-list-group-item span,
html[data-ft-theme="dark"] .list-group-item span,
html[data-ft-theme="dark"] .mtext-color,
html[data-ft-theme="dark"] .nav-item.dropdown.connection .dropdown-item {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .lang-dropdown .btn,
html[data-ft-theme="dark"] .dropdown-toggle {
    color: var(--ft-ink) !important;
}

/* Stat cards: libs/custom.css forces --bs-primary (navy) on dark cards */
html[data-ft-theme="dark"] .card.total-card-color label.icon,
html[data-ft-theme="dark"] .card.total-card-color h1,
html[data-ft-theme="dark"] .card.total-card-color h5.text-muted,
html[data-ft-theme="dark"] .card.total-card-color .metric-value,
html[data-ft-theme="dark"] .card.total-card-color .metric-value h1,
html[data-ft-theme="dark"] .header-summery .card.total-card-color label.icon,
html[data-ft-theme="dark"] .header-summery .card.total-card-color h1,
html[data-ft-theme="dark"] .header-summery .card.total-card-color h5.text-muted,
html[data-ft-theme="dark"] .total-card-body .box-content h5,
html[data-ft-theme="dark"] .total-card-body .box-content .metric-value h1 {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .card.total-card-color h5.text-muted,
html[data-ft-theme="dark"] .header-summery .card.total-card-color h5.text-muted {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] .card.total-card-color label.icon,
html[data-ft-theme="dark"] .header-summery .card.total-card-color label.icon {
    color: var(--ft-yellow) !important;
}

html[data-ft-theme="dark"] .header-summery .card:hover,
html[data-ft-theme="dark"] .header-summery .card.total-card-color:hover {
    background-color: var(--ft-navy) !important;
}

html[data-ft-theme="dark"] .card:hover.total-card-color label.icon,
html[data-ft-theme="dark"] .card:hover.total-card-color h1,
html[data-ft-theme="dark"] .card:hover.total-card-color h5.text-muted,
html[data-ft-theme="dark"] .header-summery .card:hover.total-card-color label.icon,
html[data-ft-theme="dark"] .header-summery .card:hover.total-card-color h1,
html[data-ft-theme="dark"] .header-summery .card:hover.total-card-color h5.text-muted {
    color: #fff !important;
}

html[data-ft-theme="dark"] .card.total-card-color.color-purple,
html[data-ft-theme="dark"] .card.total-card-color[class*="color-"] {
    background-color: var(--ft-surface-2) !important;
}

/* ApexCharts SVG labels */
html[data-ft-theme="dark"] .apexcharts-text,
html[data-ft-theme="dark"] .apexcharts-title-text,
html[data-ft-theme="dark"] .apexcharts-legend-text,
html[data-ft-theme="dark"] .apexcharts-xaxis-label,
html[data-ft-theme="dark"] .apexcharts-yaxis-label,
html[data-ft-theme="dark"] .apexcharts-datalabel,
html[data-ft-theme="dark"] .apexcharts-pie-label {
    fill: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .apexcharts-gridline,
html[data-ft-theme="dark"] .apexcharts-xaxis-tick,
html[data-ft-theme="dark"] .apexcharts-yaxis-tick {
    stroke: rgba(255, 255, 255, 0.12) !important;
}

html[data-ft-theme="dark"] .apexcharts-tooltip.apexcharts-theme-light {
    background: var(--ft-surface) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .apexcharts-tooltip-title {
    background: var(--ft-surface-2) !important;
    border-bottom-color: var(--ft-border-soft) !important;
    color: var(--ft-ink) !important;
}

/* Dashboard calendar / date picker */
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget table td,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget table th,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget .picker-switch,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget .timepicker-hour,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget .timepicker-minute,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget .timepicker-second {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget table td.day:hover,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget table td.hour:hover,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget table td.minute:hover,
html[data-ft-theme="dark"] .bootstrap-datetimepicker-widget table td.second:hover {
    background: rgba(245, 158, 11, 0.15) !important;
}

html[data-ft-theme="dark"] .daterangepicker {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .daterangepicker .calendar-table {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] .daterangepicker td.available:hover,
html[data-ft-theme="dark"] .daterangepicker th.available:hover {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] .daterangepicker .drp-selected,
html[data-ft-theme="dark"] .daterangepicker .calendar-table th,
html[data-ft-theme="dark"] .daterangepicker .calendar-table td {
    color: var(--ft-ink) !important;
}

/* =========================================================
   Public site
   ========================================================= */
html[data-ft-theme="dark"] body.ft-site {
    background-color: var(--ft-surface-3);
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] body.ft-site section,
html[data-ft-theme="dark"] body.ft-site .container,
html[data-ft-theme="dark"] body.ft-site .container-fluid:not(.border-bottom) {
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] body.ft-site section.container-fluid.border-bottom,
html[data-ft-theme="dark"] body.ft-site .navbar-light,
html[data-ft-theme="dark"] body.ft-site .navbar {
    background-color: var(--ft-surface-3) !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] body.ft-site .navbar-brand .logo {
    filter: brightness(1.05);
}

html[data-ft-theme="dark"] body.ft-site .menu .navbar-nav .nav-item .nav-link,
html[data-ft-theme="dark"] body.ft-site .auth-btn:not(.btn-primary) {
    color: #d7e0ec !important;
}

html[data-ft-theme="dark"] body.ft-site .menu .navbar-nav .nav-item .nav-link.active,
html[data-ft-theme="dark"] body.ft-site .menu .navbar-nav .nav-item .nav-link:hover {
    color: var(--ft-teal) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-hero {
    background:
        radial-gradient(ellipse 70% 55% at 85% 20%, rgba(245, 158, 11, 0.12), transparent 55%),
        radial-gradient(ellipse 55% 50% at 10% 80%, rgba(0, 77, 64, 0.35), transparent 60%),
        linear-gradient(180deg, #121820 0%, #0f1419 55%, #0f1419 100%) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-ft-theme="dark"] body.ft-site .banner-hilight,
html[data-ft-theme="dark"] body.ft-site .font-weight-bold,
html[data-ft-theme="dark"] body.ft-site .display-6 {
    color: #fff !important;
}

html[data-ft-theme="dark"] body.ft-site .banner-subtitle,
html[data-ft-theme="dark"] body.ft-site p,
html[data-ft-theme="dark"] body.ft-site .page-content,
html[data-ft-theme="dark"] body.ft-site .page-content p,
html[data-ft-theme="dark"] body.ft-site .page-content li {
    color: var(--ft-muted);
}

html[data-ft-theme="dark"] body.ft-site .section-bg,
html[data-ft-theme="dark"] body.ft-site section.bg-light,
html[data-ft-theme="dark"] body.ft-site .section-bg-white,
html[data-ft-theme="dark"] body.ft-site section:not(.bg-primary):not(.p-0) {
    background-color: var(--ft-surface-3) !important;
}

html[data-ft-theme="dark"] body.ft-site .service-item,
html[data-ft-theme="dark"] body.ft-site .whycourier-item,
html[data-ft-theme="dark"] body.ft-site .charge-item,
html[data-ft-theme="dark"] body.ft-site .blogs .card,
html[data-ft-theme="dark"] body.ft-site section.key-features .card,
html[data-ft-theme="dark"] body.ft-site .card,
html[data-ft-theme="dark"] body.ft-site .faq-item,
html[data-ft-theme="dark"] body.ft-site .accordion-item {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border-soft) !important;
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] body.ft-site .charge-item h3,
html[data-ft-theme="dark"] body.ft-site .section-title,
html[data-ft-theme="dark"] body.ft-site .title,
html[data-ft-theme="dark"] body.ft-site .card-title,
html[data-ft-theme="dark"] body.ft-site .card-body h3,
html[data-ft-theme="dark"] body.ft-site .card-body h4,
html[data-ft-theme="dark"] body.ft-site .blog-title {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.ft-site .tracking-form,
html[data-ft-theme="dark"] body.ft-site .contact-form,
html[data-ft-theme="dark"] body.ft-site .subscribe-form,
html[data-ft-theme="dark"] body.ft-site .page-content .contact-form {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] body.ft-site .tracking-form .form-control,
html[data-ft-theme="dark"] body.ft-site .contact-form .form-control,
html[data-ft-theme="dark"] body.ft-site .subscribe-form .form-control {
    background-color: var(--ft-surface-3) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.ft-site .user-dropdown .dropdown-item {
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] body.ft-site .user-dropdown {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-lang-toggle-nav,
html[data-ft-theme="dark"] body.ft-site .ft-lang-switcher .ft-lang-toggle,
html[data-ft-theme="dark"] body.ft-site .ft-lang-switcher .ft-lang-toggle-nav {
    background: var(--ft-surface-2) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-lang-switcher .dropdown-menu {
    background-color: var(--ft-surface) !important;
    border-color: var(--ft-border) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-lang-switcher .dropdown-item {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-lang-switcher .dropdown-item:hover,
html[data-ft-theme="dark"] body.ft-site .ft-lang-switcher .dropdown-item.active {
    background-color: rgba(245, 158, 11, 0.12) !important;
}

html[data-ft-theme="dark"] body.ft-site .subscribe-form .input-group-text.btn.bg-white {
    background: var(--ft-yellow) !important;
    color: var(--ft-navy-dark) !important;
}

html[data-ft-theme="dark"] body.ft-site .breadcrumb,
html[data-ft-theme="dark"] body.ft-site .breadcrumb-item,
html[data-ft-theme="dark"] body.ft-site .breadcrumb-item.active {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] body.ft-site .blog-details-content,
html[data-ft-theme="dark"] body.ft-site .blog-content,
html[data-ft-theme="dark"] body.ft-site .tracking-result,
html[data-ft-theme="dark"] body.ft-site .tracking-box {
    background-color: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
    border-color: var(--ft-border-soft) !important;
}

/* Express entry kiosk */
html[data-ft-theme="dark"] body.express-kiosk-body {
    background: linear-gradient(180deg, #0f1419 0%, #121820 100%) !important;
}

html[data-ft-theme="dark"] body.express-kiosk-body .express-entry-card {
    background: var(--ft-surface) !important;
    border-color: var(--ft-border-soft) !important;
    color: var(--ft-ink);
}

html[data-ft-theme="dark"] body.express-kiosk-body .express-label,
html[data-ft-theme="dark"] body.express-kiosk-body .express-entry-title,
html[data-ft-theme="dark"] body.express-kiosk-body .express-entry-subtitle {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.express-kiosk-body .form-control,
html[data-ft-theme="dark"] body.express-kiosk-body .express-input,
html[data-ft-theme="dark"] body.express-kiosk-body select.form-control {
    background-color: var(--ft-surface-3) !important;
    border-color: var(--ft-border) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.express-kiosk-body .express-price-box,
html[data-ft-theme="dark"] body.express-kiosk-body .express-summary {
    background: var(--ft-surface-2) !important;
    border-color: var(--ft-border-soft) !important;
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-page-hero,
html[data-ft-theme="dark"] body.ft-site .ft-tracking-hero {
    background:
        radial-gradient(ellipse 70% 55% at 85% 20%, rgba(245, 158, 11, 0.1), transparent 55%),
        linear-gradient(180deg, #121820 0%, #0f1419 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-tracking-empty {
    background: var(--ft-surface) !important;
    border-color: var(--ft-border-soft) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-tracking-empty h4 {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.ft-site .cd-timeline__content {
    background: var(--ft-surface) !important;
    color: var(--ft-ink) !important;
    border-color: var(--ft-border-soft) !important;
    border-left-color: var(--ft-yellow) !important;
}

html[data-ft-theme="dark"] body.ft-site .cd-timeline__content::before {
    border-right-color: var(--ft-surface) !important;
}

html[data-ft-theme="dark"] body.ft-site .cd-timeline__content strong {
    color: var(--ft-ink) !important;
}

html[data-ft-theme="dark"] body.ft-site .cd-timeline__container::before {
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-ft-theme="dark"] body.ft-site .cd-timeline__img {
    box-shadow: 0 0 0 4px var(--ft-surface-3), 0 0 0 6px rgba(255, 255, 255, 0.08) !important;
}

html[data-ft-theme="dark"] body.ft-site .cd-timeline__date,
html[data-ft-theme="dark"] body.ft-site .cd-timeline__date strong,
html[data-ft-theme="dark"] body.ft-site .cd-timeline__date small {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] body.ft-site footer.bg-primary .title,
html[data-ft-theme="dark"] body.ft-site footer.bg-primary .text-white,
html[data-ft-theme="dark"] body.ft-site footer.bg-primary p,
html[data-ft-theme="dark"] body.ft-site footer.bg-primary small {
    color: #fff !important;
}

html[data-ft-theme="dark"] body.ft-site .app-download-btn {
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--ft-navy-dark) !important;
}

html[data-ft-theme="dark"] body.ft-site .app-download-btn__icon,
html[data-ft-theme="dark"] body.ft-site .app-download-btn__icon i,
html[data-ft-theme="dark"] body.ft-site .app-download-btn__text strong {
    color: var(--ft-navy-dark) !important;
}

html[data-ft-theme="dark"] body.ft-site .app-download-btn__text small {
    color: var(--ft-muted) !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-nav-toggle {
    background: #243044;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-ft-theme="dark"] body.ft-site .ft-nav-toggle__bar {
    background: #fff;
}

html[data-ft-theme="dark"] body.ft-site .ft-drawer.offcanvas,
html[data-ft-theme="dark"] body.ft-site .ft-drawer__body {
    background: #0a2349 !important;
}

html[data-ft-theme="dark"] body.ft-site .ft-drawer-link,
html[data-ft-theme="dark"] body.ft-site .ft-drawer-link__label,
html[data-ft-theme="dark"] body.ft-site .ft-drawer__contact {
    color: #fff !important;
}

.express-appearance-floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
}

.express-appearance-floating .ft-appearance-toggle--floating {
    position: static;
}
