@import url('common.css');
/* =========================
   THEME VARIABLES
========================= */
:root {
    --primary: #ff7a00;
    --primary-dark: #e66a00;
    --primary-light: #fff3e0;
    --text-dark: #222;
    --text-muted: #777;
    --text-light: #fff;
    --bg-light: #f2f2f2;
    --bg-white: #ffffff;
    --border: #ddd;
    --radius: 12px;
    --radius-lg: 30px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* =========================
   DARK MODE FULL FIX
========================= */

[data-theme="dark"] {
    --bg-light: #121212;
    --bg-white: #1e1e1e;
    --text-dark: #ffffff;
    --text-muted: #bbbbbb;
    --border: #333;
}

    /* GLOBAL */
    [data-theme="dark"] body {
        background: #121212;
        color: #fff;
    }

    /* HEADER + NAV */
    [data-theme="dark"] .app-header,
    [data-theme="dark"] .bottom-nav {
        background: #1e1e1e !important;
        border-color: #333;
    }

    /* WALLET */
    [data-theme="dark"] .wallet-card {
        background: linear-gradient(135deg, #ff7a00, #ff9a3c);
        color: #fff;
    }

    /* OFFER CARD */
    [data-theme="dark"] .offer-card {
        background: #2a2a2a;
        color: #fff;
    }

        [data-theme="dark"] .offer-card .small {
            color: #ccc;
        }

    /* ACTION CARDS */
    [data-theme="dark"] .action-card {
        background: #1e1e1e;
        border: 1px solid #333;
        color: #fff;
    }

        [data-theme="dark"] .action-card i {
            color: #ff7a00;
        }

    /* RESTAURANT CARDS */
    [data-theme="dark"] .restaurant-card {
        background: #1e1e1e;
        border: 1px solid #333;
        color: #fff;
    }

    /* TEXT FIXES */
    [data-theme="dark"] .text-muted {
        color: #aaa !important;
    }

    [data-theme="dark"] .text-orange {
        color: #ff9a3c !important;
    }

    /* BUTTON */
    [data-theme="dark"] .btn-light {
        background: #333;
        color: #fff;
        border: none;
    }

    /* SCROLL BACKGROUND */
    [data-theme="dark"] .app-content {
        background: #121212;
    }


    /* =========================
   RESTAURANT PAGE DARK MODE
========================= */

    /* SEARCH BOX */
    [data-theme="dark"] .search-box {
        background: #1e1e1e;
        border: 1px solid #333;
    }

        [data-theme="dark"] .search-box input {
            color: #fff;
        }

            [data-theme="dark"] .search-box input::placeholder {
                color: #888;
            }

    /* CHIPS */
    [data-theme="dark"] .chip {
        background: #2a2a2a;
        color: #ccc;
    }

        [data-theme="dark"] .chip.active {
            background: var(--primary);
            color: #fff;
        }

    /* RESTAURANT LIST CARD */
    [data-theme="dark"] .restaurant-list-card {
        background: #1e1e1e;
        border: 1px solid #333;
        color: #fff;
    }

        /* TEXT COLORS */
        [data-theme="dark"] .restaurant-list-card .text-muted {
            color: #aaa !important;
        }

        /* ICON */
        [data-theme="dark"] .restaurant-list-card i {
            color: #888;
        }

        /* IMAGE FIX (optional if images look dull) */
        [data-theme="dark"] .restaurant-list-card img {
            filter: brightness(0.9);
        }


    /* =========================
   LIST ITEM PAGE DARK MODE
========================= */
    [data-theme="dark"] .app-modal {
        background: #1e1e1e;
        color: #fff;
    }

    [data-theme="dark"] .modal-footer .btn-light {
        background: #2a2a2a;
        color: #fff;
        border: none;
    }

    [data-theme="dark"] .qty-box {
        background: #2a2a2a;
        border: 1px solid #444;
    }

        [data-theme="dark"] .qty-box button {
            background: var(--primary);
        }

    [data-theme="dark"] .btn-close {
        filter: invert(1);
        opacity: 0.8;
    }

    /* =========================
   Offer PAGE DARK MODE
========================= */

    [data-theme="dark"] .offer-card-ui {
        color: #fff;
    }

    [data-theme="dark"] .offer-yellow {
        background: #5a3b1e;
    }

    [data-theme="dark"] .offer-orange {
        background: #5a2d00;
    }

    [data-theme="dark"] .offer-blue {
        background: #1f2a38;
    }

    [data-theme="dark"] .offer-code {
        background: rgba(255,255,255,0.1);
    }

    [data-theme="dark"] .offer-overlay {
        background: linear-gradient( to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4) );
    }

    /* =========================
   ORDER STATUS PAGE DARK MODE
========================= */

    [data-theme="dark"] .order-card,
    [data-theme="dark"] .detail-card {
        background: #1e1e1e;
        color: #fff;
    }

    [data-theme="dark"] .detail-row {
        border-bottom: 1px solid #333;
    }



    /* =========================
   WALLET PAGE
========================= */

    [data-theme="dark"] .amount-input {
        background: #1e1e1e;
        border: 1px solid #333;
        color: #fff;
    }

    [data-theme="dark"] .terms-card {
        background: #1e1e1e;
    }

    [data-theme="dark"] .amount-chip {
        background: #2a2a2a;
        color: #ff9a3c;
    }


    /* =========================
   PROFILE PAGE
========================= */
    [data-theme="dark"] .profile-card,
    [data-theme="dark"] .profile-menu,
    [data-theme="dark"] .logout-btn {
        background: #1e1e1e;
        color: #fff;
    }

    [data-theme="dark"] .menu-item {
        border-color: #333;
    }

    [data-theme="dark"] .profile-sub {
        color: #aaa;
    }


    [data-theme="dark"] .order-cardfeed {
        background: #1e1e1e;
        color: #fff;
    }

    [data-theme="dark"] .rating-stars i {
        color: #555;
    }

        [data-theme="dark"] .rating-stars i.active {
            color: #ff9a3c;
        }

    [data-theme="dark"] .feedback-card {
        background: #1e1e1e;
        color: #fff;
    }

    [data-theme="dark"] .txn-card {
        background: #1e1e1e;
        color: #fff;
    }

    [data-theme="dark"] .credit-box {
        background: #1b5e20;
        color: #fff;
    }

    [data-theme="dark"] .debit-box {
        background: #b71c1c;
        color: #fff;
    }

    /* =========================
        Mess Index PAGE
    ========================= */

    [data-theme="dark"] .report-card,
    [data-theme="dark"] .order-count-card {
        background: #1e1e1e;
    }

    [data-theme="dark"] .note-box {
        background: #3a1e1e;
        color: #ff8a80;
    }

    [data-theme="dark"] .menu-list {
        background: #1e1e1e;
    }

    [data-theme="dark"] .menu-item {
        border-bottom: 1px solid #333;
    }

    [data-theme="dark"] .menu-card {
        background: #1e1e1e;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }

        [data-theme="dark"] .menu-card span {
            color: #fff;
        }


/* =========================
        Mess Index PAGE
    ========================= */

    /* =========================
   LIST ITEM PAGE (FINAL FIX)
========================= */

/* TABS */
[data-theme="dark"] .tab {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #333;
}

[data-theme="dark"] .tab.active {
    background: var(--primary);
    color: #fff;
}

/* SEARCH BOX FULL FIX */
[data-theme="dark"] .search-box {
    background: #1e1e1e;
    border-radius: 14px;
    border: 1px solid #333;
    padding: 5px;
}

[data-theme="dark"] .search-box input {
    background: transparent;
    border: none;
    color: #fff;
}

[data-theme="dark"] .search-box i {
    color: #aaa;
}

/* ITEM CARD */
[data-theme="dark"] .item-card {
    background: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* TEXT */
[data-theme="dark"] .item-title {
    color: #fff;
}

[data-theme="dark"] .item-sub {
    color: #aaa;
}

/* IMAGE FIX */
[data-theme="dark"] .item-img {
    filter: brightness(0.9);
}

/* ARROW */
[data-theme="dark"] .item-arrow i {
    color: var(--primary);
}

/* EMPTY TEXT */
[data-theme="dark"] .text-muted {
    color: #888 !important;
}
 

/* =========================
    ITem Add
========================= */

[data-theme="dark"] .form-card {
    background: #1e1e1e;
}

[data-theme="dark"] .app-input {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #fff;
}

[data-theme="dark"] .upload-box {
    border: 1px dashed #444;
}

[data-theme="dark"] .upload-box i {
    color: #ff9a3c;
}

[data-theme="dark"] .custom-modal {
    background: #1e1e1e;
    color: #fff;
}

/* Title */
[data-theme="dark"] .custom-modal h5 {
    color: #fff;
}

/* Text */
[data-theme="dark"] .custom-modal p {
    color: #bbb;
}

/* Close button (dark mode) */
[data-theme="dark"] .custom-modal .btn-light {
    background: #2a2a2a;
    color: #aaa;
}

[data-theme="dark"] .custom-modal select {
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #333;
}

/* Backdrop (important for dark UI) */
[data-theme="dark"] .modal-backdrop.show {
    background-color: rgba(0,0,0,0.8);
}


/* =========================
    Pending Status
========================= */

/* DARK MODE */
[data-theme="dark"] .order-item {
    background: #1e1e1e;
}

[data-theme="dark"] .order-row {
    color: #aaa;
}

[data-theme="dark"] .search-box input {
    background: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
}

[data-theme="dark"] .order-tabs .tab {
    background: #2a2a2a;
    color: #ccc;
}

[data-theme="dark"] .order-tabs .tab.active {
    background: #ff7a00;
    color: #fff;
}


/* DARK MODE */
[data-theme="dark"] .order-card {
    background: #1e1e1e;
    color: #fff;
}

[data-theme="dark"] .payment {
    color: #aaa;
}

[data-theme="dark"] .status.delivered {
    background: rgba(40,167,69,0.2);
    color: #4cd964;
}


/* DARK MODE */
[data-theme="dark"] .profile-card {
    background: #1e1e1e;
    color: #fff;
}

[data-theme="dark"] .profile-info {
    color: #aaa;
}

[data-theme="dark"] .profile-img {
    background: #2c2c2c;
}

[data-theme="dark"] .app-modal {
    background: #1e1e1e;
    color: #fff;
}

/* FIX INPUT BACKGROUND IN DARK MODE */
[data-theme="dark"] .app-input {
    background: #2c2c2c !important;
    border: 1px solid #444;
    color: #fff;
}

/* FIX PLACEHOLDER */
[data-theme="dark"] .app-input::placeholder {
    color: #aaa;
}

/* ?? IMPORTANT: FIX CHROME AUTOFILL WHITE BG */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #2c2c2c inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .app-btn-light {
    background: #2c2c2c;
    color: #fff;
}