/* ================================================
   Frontend Dark Mode Styles
   Applied when body has the 'dark' class
   ================================================ */

/* ---- Global Catch-All: Override ALL white backgrounds ---- */
body.dark {
    background-color: #0f1419 !important;
    color: #e1e8ed;
}

body.dark *:not(.btn-solid):not(.btn-primary):not(.badge):not(.badge-danger):not(.spinner-border):not(img):not(svg):not(path):not(line):not(circle):not(use):not(.icon-sun):not(.icon-moon) {
    border-color: #2a3a4a !important;
}

/* ---- Typography ---- */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark .title h2 {
    color: #f0f3f5 !important;
}

body.dark p,
body.dark span:not(.badge):not(.badge-danger):not(.spinner-border),
body.dark label,
body.dark li:not(.currency):not(.lang):not(.profile) {
    color: #c5cdd5;
}

body.dark a:not(.btn-solid):not(.btn-primary):not(.nav-link.active) {
    color: #a0b4c8;
}

body.dark a:hover {
    color: var(--primary-color) !important;
}

/* ---- Header ---- */
body.dark header {
    background-color: #15202b !important;
}

body.dark header .sub-header {
    background-color: #111b25 !important;
}

body.dark header .top-header {
    background-color: #15202b !important;
}

body.dark header .navbar,
body.dark .custom-navbar {
    background-color: #15202b !important;
}

body.dark header .navbar .nav-link {
    color: #c5cdd5 !important;
}

body.dark header .navbar .nav-link:hover,
body.dark header .navbar .nav-link.active {
    color: var(--primary-color) !important;
}

body.dark .currency-btn,
body.dark .language-btn,
body.dark .profile-btn {
    color: #c5cdd5 !important;
}

body.dark .onhover-show-div {
    background-color: #1a2939 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body.dark .onhover-show-div li a {
    color: #c5cdd5 !important;
}

body.dark .onhover-show-div li a:hover {
    background-color: #223344 !important;
    color: var(--primary-color) !important;
}

body.dark .profile-onhover {
    background-color: #1a2939 !important;
}

body.dark .navbar-header {
    background-color: #15202b !important;
}

body.dark .navbar-header h4 {
    color: #f0f3f5 !important;
}

body.dark .navbar-toggler-icon {
    filter: invert(1);
}

/* ---- Sections / Backgrounds ---- */
body.dark section {
    background-color: #0f1419 !important;
}

body.dark .section-bg,
body.dark .bg-light {
    background-color: #15202b !important;
}

body.dark .home-section {
    background-color: #0f1419 !important;
}

body.dark .breadcrumb-section {
    background-color: #111b25 !important;
}

body.dark .breadcrumb-contain h2,
body.dark .breadcrumb-contain p {
    color: #f0f3f5 !important;
}

/* ---- Cards & Boxes (AGGRESSIVE) ---- */
body.dark .card,
body.dark .service-card,
body.dark .category-card,
body.dark .blog-card,
body.dark .booking-box,
body.dark .review-card,
body.dark .coupon-item,
body.dark .no-data-found,
body.dark .service-box,
body.dark .offer-box,
body.dark .deal-box,
body.dark .category-box,
body.dark .booking-sec-box,
body.dark .service-list-box {
    background-color: #192734 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark .card:hover,
body.dark .service-card:hover,
body.dark .booking-box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body.dark .card-body,
body.dark .card-header,
body.dark .card-footer {
    background-color: #192734 !important;
}

/* ---- Booking Section ---- */
body.dark .booking-sec .booking-sec-box .booking-list .booking-box {
    background-color: #192734 !important;
}

body.dark .booking-card,
body.dark .booking-detail {
    background-color: #192734 !important;
}

body.dark .service-booking .delivery-location {
    background-color: #192734 !important;
}

body.dark .date-time-picket-sec {
    background-color: #192734 !important;
}

body.dark .selected-men {
    background-color: #192734 !important;
}

body.dark .bill-summary .charge,
body.dark .bill-summary .total,
body.dark .payment-summary .charge,
body.dark .payment-summary .total {
    background-color: #192734 !important;
}

/* ---- Service Detail ---- */
body.dark .service-detail-section {
    background-color: #0f1419 !important;
}

body.dark .service-detail-box {
    background-color: #192734 !important;
}

/* ---- Review Section ---- */
body.dark .review-section .review-content .review-card {
    background-color: #192734 !important;
}

body.dark .comment-section form {
    background-color: #192734 !important;
}

/* ---- Payment Options ---- */
body.dark .payment .payment-body .payment-options .payment-option {
    background-color: #192734 !important;
}

/* ---- Category Slider ---- */
body.dark .category-slider .swiper-slide,
body.dark .custom-nav-tabs .nav-item {
    background-color: #192734 !important;
}

body.dark .nav-tabs .nav-link {
    background-color: #192734 !important;
    color: #c5cdd5 !important;
}

body.dark .nav-tabs .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* ---- Dropdowns (custom) ---- */
body.dark .dropdown.select-dropdown-div .select-btn {
    background-color: #1a2939 !important;
    color: #e1e8ed !important;
}

/* ---- Forms ---- */
body.dark .form-control {
    background-color: #1a2939 !important;
    color: #e1e8ed !important;
}

body.dark .form-control:focus {
    background-color: #223344 !important;
    border-color: var(--primary-color) !important;
    color: #e1e8ed !important;
}

body.dark .form-control::placeholder {
    color: #6b7d8e !important;
}

body.dark .input-group-text {
    background-color: #1a2939 !important;
    color: #c5cdd5 !important;
}

body.dark select.form-control,
body.dark .form-select {
    background-color: #1a2939 !important;
    color: #e1e8ed !important;
}

body.dark .select2-container--default .select2-selection--single,
body.dark .select2-container--default .select2-selection--multiple {
    background-color: #1a2939 !important;
    color: #e1e8ed !important;
}

body.dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e1e8ed !important;
}

body.dark .select2-dropdown {
    background-color: #1a2939 !important;
}

body.dark .select2-results__option {
    color: #c5cdd5 !important;
}

body.dark .select2-results__option--highlighted {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

body.dark .home-form-group .input-group {
    background-color: #1a2939 !important;
}

body.dark .home-form-group input {
    background-color: #1a2939 !important;
    color: #e1e8ed !important;
}

body.dark .autocomplete-results {
    background-color: #1a2939 !important;
}

body.dark .trending-searches {
    background: rgba(25, 39, 52, 0.95) !important;
    border-color: #2a3a4a !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

body.dark .trending-searches .trending-header {
    border-bottom-color: #2a3a4a !important;
}

body.dark .trending-searches .trending-header span {
    color: #8899aa !important;
}

body.dark .trending-tag {
    background: rgba(42, 58, 74, 0.6) !important;
    border-color: #2a3a4a !important;
    color: #c5cdd5 !important;
}

body.dark .trending-tag:hover {
    background: var(--primary-color) !important;
    color: #111 !important;
    border-color: var(--primary-color) !important;
}

body.dark .search-tagline {
    color: #6b7d8e !important;
}

/* ---- Buttons ---- */
body.dark .btn-outline {
    border-color: #2a3a4a !important;
    color: #c5cdd5 !important;
}

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

/* ---- Accordion / FAQ ---- */
body.dark .accordion-item,
body.dark .faq-section .accordion .accordion-item {
    background-color: #192734 !important;
}

body.dark .accordion-button {
    background-color: #192734 !important;
    color: #e1e8ed !important;
}

body.dark .accordion-button:not(.collapsed) {
    background-color: #1a2939 !important;
    color: var(--primary-color) !important;
}

body.dark .accordion-body {
    background-color: #192734 !important;
    color: #c5cdd5 !important;
}

/* ---- Footer ---- */
body.dark footer,
body.dark .footer-section {
    background-color: #111b25 !important;
}

body.dark footer h4,
body.dark footer h5,
body.dark footer p,
body.dark footer a,
body.dark footer li {
    color: #c5cdd5 !important;
}

body.dark footer a:hover {
    color: var(--primary-color) !important;
}

body.dark .sub-footer {
    background-color: #0b1117 !important;
}

body.dark .newsletter-section {
    background-color: #15202b !important;
}

/* ---- Tables ---- */
body.dark .table {
    color: #c5cdd5 !important;
}

body.dark .table thead {
    background-color: #1a2939 !important;
}

body.dark .table-striped tbody tr:nth-of-type(odd) {
    background-color: #151f2b !important;
}

/* ---- Modals ---- */
body.dark .modal-content {
    background-color: #192734 !important;
    color: #e1e8ed !important;
}

body.dark .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---- Location ---- */
body.dark .location-dropdown .onhover-show-div {
    background-color: #1a2939 !important;
}

body.dark .detect-location {
    background-color: #1a2939 !important;
}

body.dark .detect-location h4,
body.dark .detect-location p {
    color: #f0f3f5 !important;
}

body.dark .location-detected-modal .modal-content {
    background-color: #192734 !important;
}

body.dark .location-list li {
    background-color: #192734 !important;
}

body.dark .location-list li:hover {
    background-color: #223344 !important;
}

/* ---- Pagination ---- */
body.dark .page-link {
    background-color: #1a2939 !important;
    color: #c5cdd5 !important;
}

body.dark .page-link:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* ---- Profile / Account ---- */
body.dark .profile-card,
body.dark .profile-section,
body.dark .account-card {
    background-color: #192734 !important;
}

body.dark .nav-pills .nav-link {
    color: #c5cdd5 !important;
}

body.dark .nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* ---- Home Section Cards ---- */
body.dark .home-contain {
    background-color: transparent !important;
}

body.dark .home-contain h1,
body.dark .home-contain p {
    color: #f0f3f5 !important;
}

body.dark .home-animation {
    color: var(--primary-color) !important;
}

/* ---- Swiper / Slick ---- */
body.dark .swiper-slide {
    background-color: transparent !important;
}

body.dark .slick-slide {
    background-color: transparent !important;
}

/* ---- Service List Card (visible on homepage) ---- */
body.dark .service-list .service-content {
    background-color: #192734 !important;
}

body.dark .service-list .service-detail-content {
    background-color: #192734 !important;
}

/* ---- Misc ---- */
body.dark hr {
    border-color: #2a3a4a !important;
}

body.dark .toast {
    background-color: #192734 !important;
    color: #e1e8ed !important;
}

body.dark .loader,
body.dark .page-loader {
    background-color: #0f1419 !important;
}

body.dark .page-loader-wrapper {
    background-color: #0f1419 !important;
}

/* ---- Featured / Offer Cards ---- */
body.dark [class*="offer"],
body.dark [class*="featured"],
body.dark [class*="service-box"],
body.dark [class*="service-list"] {
    background-color: #192734 !important;
}

/* ---- MEGA CATCH: any div/section with white/light bg in computed styles ---- */
body.dark div[style*="background-color: white"],
body.dark div[style*="background-color: #fff"],
body.dark div[style*="background-color: #ffffff"],
body.dark div[style*="background: white"],
body.dark div[style*="background: #fff"],
body.dark div[style*="background: #ffffff"],
body.dark section[style*="background-color: white"],
body.dark section[style*="background-color: #fff"] {
    background-color: #192734 !important;
}

/* ---- Scrollbar ---- */
body.dark ::-webkit-scrollbar-track {
    background: #15202b;
}

body.dark ::-webkit-scrollbar-thumb {
    background: #2a3a4a;
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: #3a4a5a;
}

/* ---- Theme Toggle Button ---- */
.theme-toggle-btn {
    background: none;
    border: 1px solid #e5e8ea;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--primary-color) !important;
    background-color: rgba(84, 101, 255, 0.08);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: #00162e;
    transition: all 0.3s ease;
}

body.dark .theme-toggle-btn {
    border-color: #2a3a4a !important;
}

body.dark .theme-toggle-btn:hover {
    border-color: var(--primary-color) !important;
    background-color: rgba(84, 101, 255, 0.15);
}

body.dark .theme-toggle-btn svg {
    stroke: #e1e8ed;
}

/* Light mode: show moon, hide sun */
.theme-toggle-btn .icon-sun {
    display: none;
}

.theme-toggle-btn .icon-moon {
    display: block;
}

/* Dark mode: show sun, hide moon */
body.dark .theme-toggle-btn .icon-sun {
    display: block;
}

body.dark .theme-toggle-btn .icon-moon {
    display: none;
}