/* =========================================
   FLEAP FLAPP MODERN LIGHT THEME
========================================= */

:root {
    --primary: #e48956;
    --primary-hover: #d67640;
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --navbar-bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --hover: #f3f4f6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: "Inter", sans-serif;
}

.container-scroller,
.page-body-wrapper,
.main-panel,
.content-wrapper {
    background: var(--bg) !important;
}

.navbar-brand-wrapper {
    background: #fff !important;
    border-bottom: 1px solid var(--border);
}

/* =========================================
   TOP NAVBAR
========================================= */

.navbar {
    background: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.navbar .navbar-menu-wrapper {
    background: #fff !important;
}

.navbar .nav-link,
.navbar i {
    color: #374151 !important;
}

/* =========================================
   CARDS
========================================= */

.card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    /* border-radius: 20px !important; */
    box-shadow: var(--shadow) !important;
}

/* .card .card-body{
    padding: 24px;
} */

.card-title {
    color: var(--text) !important;
    font-weight: 700;
}

/* Dashboard stat cards */

.stretch-card .card {
    transition: all 0.3s ease;
}

.stretch-card .card:hover {
    transform: translateY(-3px);
}

/* =========================================
   TEXT
========================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
span,
div {
    color: var(--text);
}

.text-muted {
    color: var(--muted) !important;
}

/* =========================================
   TABLES
========================================= */

.table {
    color: var(--text) !important;
}

.table thead th {
    background: #f9fafb !important;
    border-bottom: 1px solid var(--border) !important;
    color: #111827 !important;
    font-weight: 600;
}

.table tbody tr {
    background: #fff;
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table td,
.table th {
    border-color: var(--border) !important;
}

/* =========================================
   FORMS
========================================= */

.form-control,
.form-select {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    color: var(--text) !important;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(228, 137, 86, 0.15) !important;
}

/* =========================================
   BUTTONS
========================================= */

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    /* border-radius: 12px; */
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* =========================================
   DROPDOWNS
========================================= */

.dropdown-menu {
    border: 1px solid var(--border);
    /* border-radius: 16px; */
    box-shadow: var(--shadow);
}

/* =========================================
   PAGINATION
========================================= */

.page-link {
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* =========================================
   BADGES
========================================= */

.badge-primary {
    background: rgba(228, 137, 86, 0.12) !important;
    color: var(--primary) !important;
}

/* =========================================
   MODALS
========================================= */

.modal-content {
    border-radius: 20px;
    border: none;
    background-color: #ffffff;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    background: #fff !important;
    border-top: 1px solid var(--border);
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* =========================================
   DARK BLACK OVERRIDES
========================================= */

.bg-dark,
.navbar.default-layout-navbar,
.sidebar-dark,
.content-wrapper {
    background: var(--bg) !important;
}

.card.bg-dark {
    background: #fff !important;
}

/* =========================================
   CHART AREA
========================================= */

canvas {
    filter: brightness(1);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {
    .sidebar {
        box-shadow: none;
    }

    .card .card-body {
        padding: 18px;
    }
}

/* =====================================
   FINAL PREMIUM UI FIXES
===================================== */

/* Sidebar top dark fix */
.sidebar .sidebar-brand-wrapper,
.navbar-brand-wrapper {
    background: #ffffff !important;
}

/* Remove dark backgrounds everywhere */
.bg-black,
.bg-dark,
.card-dark,
.dark-bg,
.sidebar-dark {
    background: #ffffff !important;
}

/* Transaction boxes fix */
.transaction-history .item,
.transaction-list li,
.list-wrapper li {
    background: #f8fafc !important;
    border: 1px solid #edf2f7;
    border-radius: 14px;
}

/* Table improvements */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

/* .table tbody tr{
    transition:all .2s ease;
} */

/* .table tbody tr:hover{
    transform:scale(1.002);
    box-shadow:0 2px 10px rgba(0,0,0,.03);
} */

.table td,
.table th {
    /* padding:16px 14px !important; */
    vertical-align: middle;
    /* font-size:14px; */
}

/* Navbar improvement */
/* .navbar{
    min-height:70px;
    padding:0 20px;
} */

/* Sidebar width */
/* .sidebar{
    width:260px !important;
} */

/* Icons background */
.icon-box,
.card-icon,
.icon-wrapper {
    background: rgba(228, 137, 86, 0.12) !important;
    /* border-radius:12px; */
}

/* Better badges */
.badge {
    padding: 7px 12px;
    /* border-radius:30px; */
    font-weight: 500;
}

/* Footer */
.footer {
    /* padding:20px; */
    color: #6b7280;
    /* font-size:14px; */
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    /* border-radius:20px; */
}

/* Better cards */
.card {
    overflow: hidden;
}

/* Recent joined users */
.list-group-item {
    border-color: #f1f5f9 !important;
}

/* Sidebar text */
.sidebar .nav .nav-item .nav-link {
    font-size: 14px;
}

/* Active sidebar glow */
/* .sidebar .nav .nav-item.active > .nav-link{
    box-shadow:
      0 8px 20px rgba(228,137,86,.25);
} */

/* Clean inputs */
input,
select,
textarea {
    box-shadow: none !important;
}

/* Page titles */
.page-title {
    font-weight: 700;
    color: #111827;
}

/* White content wrapper */
.content-wrapper {
    background: #f5f7fb !important;
}

/* Fix random dark text */
.text-light {
    color: #6b7280 !important;
}

/* Card hover */
.card:hover {
    transform: translateY(-2px);
    transition: 0.3s ease;
}

/* Chart container */
canvas {
    max-width: 100%;
}

.light-theme-card {
    background: #ffffff !important;
}

/* sidebar */

.sidebar {
    background: #ffffff !important;
}

.sidebar .nav .nav-item.profile .profile-desc .profile-name h5 {
    color: #000 !important;
}

.sidebar .sidebar-brand-wrapper {
    background: #ffffff !important;
}

.sidebar .nav .nav-item .nav-link {
    color: #000000;
}

.sidebar .nav .nav-item.active > .nav-link {
    background: var(--primary);
}

/* Hover */
.sidebar .nav .nav-item .nav-link:hover {
    background: #ffb184 !important;
}

/* Hover icon */
.sidebar .nav .nav-item .nav-link:hover i {
    background: rgba(228, 137, 86, 0.15);
    color: var(--primary) !important;
}

/* Hover text */
/* .sidebar .nav .nav-item .nav-link:hover .menu-title {
    color: var(--primary) !important;
} */

/* =====================================
   FIX SIDEBAR BLACK HOVER
===================================== */

.sidebar .nav .nav-item:hover {
    background: transparent !important;
}

/* .sidebar .nav .nav-item:hover .nav-link {
    background: #fff4ee !important;
} */

.sidebar .nav.sub-menu .nav-item .nav-link:hover {
    color: #000 !important;
}

/* remove template dark layer */
.sidebar .nav .nav-item::before,
.sidebar .nav .nav-item::after,
.sidebar .nav .nav-link::before,
.sidebar .nav .nav-link::after {
    display: none !important;
    background: transparent !important;
}

/* force no dark hover anywhere */
.sidebar .nav-item,
.sidebar .nav-link {
    background-color: transparent !important;
}

/* keep active menu */
.sidebar .nav .nav-item.active > .nav-link {
    background: var(--primary) !important;
}

/* text */
.sidebar .nav .nav-item:hover .menu-title {
    color: var(--primary) !important;
}

/* =====================================
   SELECT2 / DROPDOWN LIGHT THEME FIX
===================================== */

/* Main select box */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    min-height: 48px;
    border-radius: 14px !important;
}

/* Rendered text */
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: var(--text) !important;
    line-height: 48px;
}

/* Arrow */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: #6b7280 transparent transparent transparent !important;
}

/* Dropdown */
.select2-dropdown {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Options */
.select2-results__option {
    background: #ffffff !important;
    color: var(--text) !important;
    padding: 12px 16px;
}

/* Hover option */
.select2-results__option--highlighted {
    background: #fff4ee !important;
    color: var(--primary) !important;
}

/* Selected option */
.select2-results__option[aria-selected="true"] {
    background: rgba(228, 137, 86, 0.12) !important;
    color: var(--primary) !important;
}

/* Search field */
.select2-search__field {
    background: #ffffff !important;
    color: var(--text) !important;
}

/* Multiple selection */
.select2-selection__choice {
    background: rgba(228, 137, 86, 0.12) !important;
    border: none !important;
    color: var(--primary) !important;
}

/* Placeholder */
.select2-selection__placeholder {
    color: var(--muted) !important;
}

/* Focus */
.select2-container--default.select2-container--focus
    .select2-selection--multiple,
.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(228, 137, 86, 0.15);
}

/* Scrollbar inside dropdown */
.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 20px;
}

.combobox-input {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    color: var(--text) !important;
    border-radius: 12px !important;
}

/* =====================================
   DATATABLE DROPDOWN LIGHT THEME
===================================== */

/* wrapper */
/* .dataTables_wrapper .dataTables_length {
    margin-bottom: 20px;
} */

/* select */
.dataTables_wrapper .dataTables_length select {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 8px 35px 8px 12px !important;
    min-width: 80px;
    height: 42px;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* focus */
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(228, 137, 86, 0.15) !important;
}

/* label */
.dataTables_wrapper .dataTables_length label {
    color: #374151 !important;
    font-weight: 500;
}

/* options */
.dataTables_wrapper .dataTables_length select option {
    background: #ffffff !important;
    color: #111827 !important;
}

/* search input */
.dataTables_wrapper .dataTables_filter input {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    color: #111827 !important;
    border-radius: 10px !important;
    height: 42px;
    padding: 10px 14px;
}

/* search input focus */
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(228, 137, 86, 0.15) !important;
    outline: none !important;
}

.theme-switch.slider {
    background-color: #000;
}

.theme-switch.slider .ball {
    background-color: #fff;
}

.sidebar .nav .nav-item .nav-link .menu-title {
    color: #000000 !important;
}

.menu-icon svg {
    stroke: var(--primary) !important;
    stroke-width: 2px !important;
}
.menu-items.active .menu-icon svg {
    stroke: rgb(0, 0, 0) !important;
}
.menu-items.active .menu-icon {
    background-color: white !important;
}

.form-control:focus,
.asColorPicker-input:focus,
.dataTables_wrapper select:focus,
.jsgrid .jsgrid-table .jsgrid-filter-row input:focus[type="text"],
.jsgrid .jsgrid-table .jsgrid-filter-row select:focus,
.jsgrid .jsgrid-table .jsgrid-filter-row input:focus[type="number"],
.select2-container--default .select2-selection--single:focus,
.select2-container--default
    .select2-selection--single
    .select2-search__field:focus,
.typeahead:focus,
.tt-query:focus,
.tt-hint:focus {
    color: #000000 !important;
}

.dropdown-menu {
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #888888;
}

.dropdown-menu .text-light {
    color: #000000 !important;
}

a.text-light:hover,
a.text-light:focus {
    color: #686868 !important;
}

.preview-list .bg-dark {
    background-color: #b4b4b4 !important;
}

.dropdown-menu .dropdown-item + .dropdown-item {
    border-top: 1px solid black !important;
    margin-top: 0;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: black !important;
    background-color: transparent !important;
}

.dropdown-item,
.dropdown-item {
    color: black !important;
    background-color: transparent !important;
}

.modalCard {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.user-profile-header {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #adadad !important;
}

.dataTable td svg {
    stroke: #000000 !important;
}

.orderDetailInfo {
    border: 1px solid #adadad;
}

.productOrderDetail,
.orderStatusHistory {
    border: 1px solid #adadad;
}

.shopInfo {
    background-color: #ffffff;
    border: 1px solid #adadad;
}

.modal-content {
    border-radius: 20px;
    border: none;
}

.sidebar .nav.sub-menu .nav-item .nav-link.active {
    color: #000;
    background: var(--primary);
}

.sidebar .nav .nav-item .menu-icon {
    background: #ededed;
}

.product-seller-border {
    border: 1px solid #adadad !important;
}

.navbar .navbar-menu-wrapper .count-indicator .count {
    color: #000000;
}

.modal-content-custom {
    background-color: #ffffff !important;
}
