/* ==========================================================================
   ELECTRONIK THEME - MODERN PREMIUM DARK MODE STYLES
   ========================================================================== */

body.dark-theme {
    background-color: #0b0f19 !important;
    color: #e2e8f0 !important;
}

/* Background Gradients & Wrapper resets */
body.dark-theme main,
body.dark-theme #hero,
body.dark-theme #hero-cat {
    background: #222e4d !important;
}

/* Typography & Titles */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme .h3,
body.dark-theme .section-title,
body.dark-theme .item-tit a,
body.dark-theme a,
body.dark-theme .breadcrumbs a {
    color: #f1f5f9 !important;
}

body.dark-theme p,
body.dark-theme span,
body.dark-theme label,
body.dark-theme .breadcrumbs,
body.dark-theme .one-line-bask-info-name,
body.dark-theme .cart-top-items,
body.dark-theme .hero-cont-gr-text ul li {
    color: #94a3b8 !important;
}

/* Header & Navigation */
body.dark-theme header,
body.dark-theme .header-mid,
body.dark-theme .header-main {
    background-color: #0b0f19 !important;
    border-color: #1e293b !important;
}

body.dark-theme .header-top {
    background-color: #1e293b !important;
}

body.dark-theme .header-search input {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

body.dark-theme .header-search input::placeholder {
    color: #64748b !important;
}

/* White Panels -> Dark Mode Slate Panels */
body.dark-theme .main-wrap,
body.dark-theme .cart-list,
body.dark-theme .woocommerce-MyAccount-content,
body.dark-theme .woocommerce-MyAccount-navigation,
body.dark-theme .woocommerce-Address,
body.dark-theme .woocommerce-column,
body.dark-theme .cart-modal-in,
body.dark-theme .order-left,
body.dark-theme .one-faq,
body.dark-theme .one-rev-in,
body.dark-theme .hero-cont,
body.dark-theme .wrap-page {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Catalog / Category Items */
body.dark-theme .one-cat-item-in,
body.dark-theme .one-cat a,
body.dark-theme .one-catinside {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

body.dark-theme .one-cat a:hover {
    background-color: #1e293b !important;
}

/* Borders and Dividers */
body.dark-theme *,
body.dark-theme hr,
body.dark-theme .header-hr,
body.dark-theme .one-menu-list,
body.dark-theme .woocommerce-Address-title,
body.dark-theme .del-info-tit,
body.dark-theme .cart-one-item-big,
body.dark-theme .cart-one-item-big-top,
body.dark-theme .order-total-list,
body.dark-theme .order-total-row,
body.dark-theme .woocommerce-order-overview {
    border-color: #1f2937 !important;
}

/* Inputs and Forms */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="number"],
body.dark-theme select,
body.dark-theme textarea {
    background-color: #1f2937 !important;
    color: #f1f5f9 !important;
    border-color: #374151 !important;
}

body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* Account Details and My Account Menu */
body.dark-theme .woocommerce-MyAccount-navigation ul li {
    background: none !important;
    border: none !important;
}

body.dark-theme .woocommerce-MyAccount-navigation ul li a {
    color: #94a3b8 !important;
    background: transparent !important;
}

body.dark-theme .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #1f2937 !important;
    color: #f1f5f9 !important;
}

body.dark-theme .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: transparent !important;
    color: #94a3b8 !important;
}

body.dark-theme .woocommerce-MyAccount-navigation ul li.is-active a:hover {
    background-color: #1f2937 !important;
    color: #f1f5f9 !important;
}

body.dark-theme .woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
    background-color: #1e293b !important;
    color: #3b82f6 !important;
    border-left-color: #3b82f6 !important;
}

/* Cabinet details/order totals */
body.dark-theme .woocommerce-orders-table__cell-order-number a {
    background-color: #1e293b !important;
    color: #60a5fa !important;
}

body.dark-theme .woocommerce-orders-table__cell-order-number a:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

body.dark-theme table.woocommerce-table--order-details,
body.dark-theme table.woocommerce-orders-table {
    border-color: #1f2937 !important;
}

body.dark-theme table.woocommerce-table--order-details th,
body.dark-theme table.woocommerce-table--order-details td,
body.dark-theme table.woocommerce-orders-table th,
body.dark-theme table.woocommerce-orders-table td {
    border-color: #1f2937 !important;
    color: #e2e8f0 !important;
}

body.dark-theme table.woocommerce-table--order-details thead,
body.dark-theme table.woocommerce-table--order-details tfoot tr th,
body.dark-theme table.woocommerce-orders-table th {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

body.dark-theme table.woocommerce-table--order-details tfoot tr:last-child td,
body.dark-theme .order-total-row:last-child .order-total-value {
    color: #60a5fa !important;
}

body.dark-theme .order-total-list {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

/* Cart Item Totals, labels, and elements */
body.dark-theme .woocommerce-Price-amount {
    color: #f1f5f9 !important;
}

body.dark-theme .one-feed-arr {
    border-color: #4b5563 !important;
}

/* Modal catalog navigation menu */
body.dark-theme .main-nav-modal-body,
body.dark-theme .side-menu {
    background-color: #0b0f19 !important;
    border-color: #1e293b !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .one-menu-list.active {
    background-color: #1e293b !important;
}

body.dark-theme .one-menu-child ul li a {
    color: #cbd5e1 !important;
}

body.dark-theme .one-menu-child ul li a.child-title {
    color: #3b82f6 !important;
}

/* Dropdown list popups */
body.dark-theme .header-drop,
body.dark-theme .lk-drop,
body.dark-theme .phone-drop,
body.dark-theme .time-drop,
body.dark-theme .lang-drop {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
}

body.dark-theme .header-drop ul li a,
body.dark-theme .lk-drop ul li a,
body.dark-theme .phone-drop ul li a,
body.dark-theme .time-drop ul li,
body.dark-theme .lang-drop ul li a {
    color: #e2e8f0 !important;
}

body.dark-theme .curr-lang,
body.dark-theme .header-lang {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

/* Footer styling */
body.dark-theme footer {
    background-color: #070a13 !important;
    border-top: 1px solid #1e293b !important;
}

body.dark-theme .footer-top {
    border-color: #1f2937 !important;
}

body.dark-theme .footer-lang ul li.act a {
    color: #ffffff !important;
}

body.dark-theme .footer-lang ul li a {
    color: #94a3b8 !important;
}

/* Specific buttons and badge backgrounds */
body.dark-theme .bt.grey {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

body.dark-theme .bt.grey:hover {
    background-color: #334155 !important;
}

body.dark-theme .item-count {
    border-color: #4b5563 !important;
}

body.dark-theme .item-count-bt {
    border-color: #4b5563 !important;
}

body.dark-theme .min:after,
body.dark-theme .plus:before,
body.dark-theme .plus:after {
    background-color: #f1f5f9 !important;
}

body.dark-theme .woocommerce-order-overview {
    background-color: #1e293b !important;
}

body.dark-theme .woocommerce-customer-details address {
    background-color: #1e293b !important;
}

/* Cabinet Custom Fields / Checkout Binder specific overrides */
body.dark-theme .checkout-binder-account-type-section,
body.dark-theme .woocommerce-EditAccountForm fieldset {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

body.dark-theme .checkout-binder-section-title {
    color: #f1f5f9 !important;
    border-bottom-color: #1f2937 !important;
}

body.dark-theme .premium-toggle-wrapper {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-theme .premium-toggle-wrapper .toggle-option {
    color: #94a3b8 !important;
}

body.dark-theme .premium-toggle-wrapper input[type="radio"]:checked + .toggle-option {
    color: #ffffff !important;
}

body.dark-theme .woocommerce-EditAccountForm fieldset legend {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    color: #f1f5f9 !important;
}

body.dark-theme .woocommerce-EditAccountForm label {
    color: #cbd5e1 !important;
}

/* All Input Types in Dark Mode */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="number"],
body.dark-theme input[type="tel"],
body.dark-theme input[type="password"],
body.dark-theme input[type="search"],
body.dark-theme input.input-text,
body.dark-theme .input-text,
body.dark-theme select,
body.dark-theme textarea {
    background-color: #1f2937 !important;
    color: #f1f5f9 !important;
    border-color: #374151 !important;
}

/* Select2 drop-downs overrides in Dark Mode */
body.dark-theme .select2-container--default .select2-selection--single,
body.dark-theme .select2-selection.select2-selection--single {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #f1f5f9 !important;
}

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

body.dark-theme .select2-dropdown {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    color: #f1f5f9 !important;
}

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

body.dark-theme .select2-results__option--highlighted[aria-selected],
body.dark-theme .select2-results__option--highlighted[data-selected] {
    background-color: #4c789e !important;
    color: #ffffff !important;
}

body.dark-theme .select2-results__option[aria-selected=true] {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

/* Autocomplete NP Suggestions dropdown popup */
body.dark-theme .suggestions,
body.dark-theme .suggestions-wrapper {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

body.dark-theme .suggestions div,
body.dark-theme .suggestions-item {
    color: #e2e8f0 !important;
    border-bottom: 1px solid #1f2937 !important;
}

body.dark-theme .suggestions div:hover,
body.dark-theme .suggestions-item:hover {
    background-color: #1e293b !important;
}

/* Checkout payment method boxes and labels */
body.dark-theme .payment_box {
    background-color: #1f2937 !important;
    color: #cbd5e1 !important;
    border-color: #374151 !important;
}

body.dark-theme .payment_box::before {
    border-bottom-color: #1f2937 !important;
}

body.dark-theme .wc_payment_method label {
    color: #f1f5f9 !important;
}

/* User Authorization modal overlays and box */
body.dark-theme .auth-modal-box {
    background-color: #111827 !important;
    border: 1px solid #1f2937 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

body.dark-theme .auth-tab {
    background: none !important;
    color: #94a3b8 !important;
    border-bottom: 2px solid transparent !important;
}

body.dark-theme .auth-tab.active {
    color: #f1f5f9 !important;
    border-bottom-color: #4c789e !important;
}

/* Product Tabs elements */
body.dark-theme .prod-tabs li {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border: 1px solid #334155 !important;
}

body.dark-theme .prod-tabs li.active {
    background-color: #4c789e !important;
    color: #ffffff !important;
    border-color: #4c789e !important;
}

body.dark-theme .one-prod-tac-cont {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

/* Cart Page gifts/offers */
body.dark-theme .one-pres {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

/* WooCommerce Alerts in Dark Mode */
body.dark-theme .woocommerce-error {
    background-color: #7f1d1d !important;
    border-color: #991b1b !important;
    color: #fee2e2 !important;
}

body.dark-theme .woocommerce-message {
    background-color: #064e3b !important;
    border-color: #065f46 !important;
    color: #d1fae5 !important;
}

body.dark-theme .woocommerce-info {
    background-color: #0c4a6e !important;
    border-color: #075985 !important;
    color: #e0f2fe !important;
}

/* User Requested Overrides & Optimizations */

/* Clock / Time tracker in header */
body.dark-theme .time-cur {
    filter: invert(0.9) brightness(1.3) !important;
    color: #111827 !important; /* Inverted to dark makes it render as bright white/gray */
}

/* Personal Cabinet notices and status details */
body.dark-theme .woocommerce-MyAccount-content > p {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
body.dark-theme .woocommerce-MyAccount-content > p mark {
    color: #ffffff !important;
    background: none !important;
}
body.dark-theme .woocommerce-MyAccount-content > p mark.order-number {
    color: #60a5fa !important;
}
body.dark-theme .woocommerce-MyAccount-content > p mark.order-status.completed {
    background-color: #064e3b !important;
    color: #34d399 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}
body.dark-theme .woocommerce-MyAccount-content > p mark.order-status.processing {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}
body.dark-theme .woocommerce-MyAccount-content > p mark.order-status.on-hold {
    background-color: #78350f !important;
    color: #fcd34d !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

/* Sales & Delivery promo highlights */
body.dark-theme .prod-sales,
body.dark-theme .pd-promo-row.pd-promo-action,
body.dark-theme .one-line-bask-info.sales {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}
body.dark-theme .prod-sales span,
body.dark-theme .pd-promo-row.pd-promo-action span,
body.dark-theme .one-line-bask-info.sales span,
body.dark-theme .one-line-bask-info.sales .one-line-bask-info-name,
body.dark-theme .one-line-bask-info.sales .one-line-bask-info-val {
    color: #fca5a5 !important;
}

body.dark-theme .prod-dely,
body.dark-theme .pd-promo-row.pd-promo-delivery,
body.dark-theme .one-line-bask-info.promo-type-delivery {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}
body.dark-theme .prod-dely span,
body.dark-theme .pd-promo-row.pd-promo-delivery span,
body.dark-theme .one-line-bask-info.promo-type-delivery span,
body.dark-theme .one-line-bask-info.promo-type-delivery .one-line-bask-info-name {
    color: #93c5fd !important;
}

/* Cart item delete icon color */
body.dark-theme .cart-one-item-del svg path {
    fill: #94a3b8 !important;
}
body.dark-theme .cart-one-item-del:hover svg path {
    fill: #ef4444 !important;
}

body.dark-theme .one-catinside-right:after {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0), rgb(17, 24, 39));
}

