﻿
body {
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

.profile-header {
    background: linear-gradient(to right, #0397F2, #0F83D8);
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
}

    .profile-header .btn {
        border-radius: 8px;
        padding: 6px 16px;
        font-weight: 500;
    }

    .profile-header .settings-icon {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 20px;
        color: white;
    }

.order-section {
    padding: 20px 10px 10px;
    background-color: #fff;
    border-radius: 12px;
    margin-top: -20px;
}

    .order-section h6 {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 15px;
    }

.order-icons {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

    .order-icons .icon-box {
        flex: 1;
    }

    .order-icons i {
        font-size: 20px;
        color: #0397F2;
        cursor: pointer;
    }

    .order-icons span {
        display: block;
        margin-top: 5px;
        font-size: 12px;
        color: #333;
    }

.profile-section {
    background: #fff;
    margin: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 12px 15px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
    text-align: left;
}

.item-list .item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
    cursor: pointer;
}

    .item-list .item:last-child {
        border-bottom: none;
    }

.item i {
    font-size: 16px;
    margin-right: 12px;
    color: #0397F2;
    width: 20px;
    text-align: center;
}

.item:hover {
    background: #f9f9f9;
    border-radius: 8px;
}

.logout-section {
    margin: 30px 0;
}

body {
    background: #f5f5f5;
}
.modal-content {
    background-color: #fff;
    width: 85%;
    max-width: 350px;
    margin: auto; /* Adds equal space on left and right */
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.coming-soon {
    color: #bbb !important;
    cursor: not-allowed;
    position: relative;
}

    .coming-soon i {
        color: #bbb;
    }

    .coming-soon::after {
        content: "Coming Soon";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: #eee;
        color: #666;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 6px;
    }

.item.coming-soon:hover {
    background: #f0f0f0;
}




.profile-header .d-flex.align-items-center {
    justify-content: flex-start; /* align whole block to the left */
}

.profile-header .settings-icon {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: 1.2rem;
    color: #fff;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-box {
    display: grid;
    /* larger gap between name & stats */
    text-align: left; /* ensure text is left‑aligned */
}

.user-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0; /* we use row-gap now, so reset any margins */
}

..user-stats {
    display: flex;
    gap: 1.25rem; /* horizontal gap between each stat */
    font-size: .60rem;
    opacity: .85;
}

.user-stats .stat {
    display: inline-flex;
    align-items: center;
    color: #eee;
    font-size: 0.85rem;
}

    .user-stats .stat i {
        font-size: .7rem;
        margin-right: .3rem;
    }




/* Sliding Drawer */
.settings-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

    .settings-drawer.active {
        right: 0;
    }

.drawer-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(to right, #0397F2, #0F83D8);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

    .drawer-header .back-btn {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        margin-right: 10px;
    }

.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .drawer-menu li {
        padding: 14px 20px;
        border-bottom: 1px solid #f1f1f1;
        font-size: 15px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

        .drawer-menu li i {
            margin-right: 10px;
            color: #0397F2;
        }



.drawer-menu-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}


    .drawer-menu-sub li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        border-bottom: 1px solid #f1f1f1;
        font-size: 15px;
        cursor: pointer;
    }

        .drawer-menu-sub li .label {
            flex-grow: 1;
            margin-left: 10px;
        }

        .drawer-menu-sub li .value {
            font-size: 14px;
            color: #666;
            display: flex;
            align-items: center;
        }

        .drawer-menu-sub li i {
            margin-right: 10px;
            color: #0397F2;
        }



/* Updated Nested Subpanel Styling */
.subpanel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10001; /* just above settings drawer */
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

    .subpanel.active {
        right: 0;
    }





























.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 70%;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    transition: bottom 0.2s ease-in-out;
    z-index: 20000;
    display: flex;
    flex-direction: column;
}




    .bottom-sheet.active {
        bottom: 0;
    }





.sheet-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bg-gradient {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    text-align: center;
}

.sheet-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.close-sheet {
    background: none;
    border: none;
    color: black;
    font-size: 1.2rem;
}

.sheet-body {
    padding: 0.75rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

    .form-input:focus {
        border-color: #0F83D8;
        box-shadow: 0 0 0 2px rgba(56,4,66,0.15);
    }

.sheet-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-cancel {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #333;
}

.btn-save {
    background: #0F83D8;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.90rem;
    color: #fff;
    width: 100%;
}

    .btn-save:hover {
        background: #2e033e;
    }



.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 19000; /* below sheet (20000) but above panels (10000+) */
    display: none;
}

    .sheet-overlay.active {
        display: block;
    }


.swal2-container {
    z-index: 999999 !important;
}





#orderListContainer {
    overscroll-behavior: contain;
    overflow-y: auto;
    touch-action: pan-y;
    height: 100%;
    side-panel scroll-behavior: smooth;
    overscroll-behavior: contain;
}





/* PANEL LAYOUT */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fafafa;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    padding-bottom: 50px;
}

    .side-panel.open {
        right: 0;
    }




.btn-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
}



.panel-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}


/* BODY */
.panel-body {
    overflow-y: auto;
    padding: 1rem;
}

/* ORDER CARD */
.order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}





    .order-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }


    /* CARD HEADER */
    .order-card .card-header {
        background: linear-gradient(to right, #e8e4e9 0%, #f8f4f9 100%);
        border-bottom: none;
        padding: 0.75rem 1rem;
    }


        .order-card .card-header h6 {
            font-weight: 700; /* stronger weight */
            letter-spacing: 0.8px; /* give breathing room */
            text-transform: uppercase; /* small‑caps feel */
            color: #0F83D8;
        }

/* STATUS BADGES */
.badge-status {
    padding: 0.25em 0.75em;
    font-size: 0.75rem;
    border-radius: 999px;
    font-weight: 500;
}

/* Base badge style */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* ✅ Status colors */
.confirmbgcolor {
    background-color: #007bff; /* Blue (Active / On Delivery) */
}

.completebgcolor {
    background-color: #28a745; /* Green (Delivered) */
}
.dangerbgcolor {
    background-color: #fee2e2 !important; /* Soft red background */
    color: #dc3545 !important; /* Sharp red text */
    border: 1px solid #fecaca;
}

.pendingbgcolor {
    background-color: #ffc107; /* Yellow (Waiting / Pending) */
    color: #212529;
}

.activebgcolor {
    background-color: #17a2b8; /* Cyan (Rider Assigned) */
}

/* Optional: subtle hover glow */
.badge:hover {
    filter: brightness(1.1);
}

.bg-lightyellow {
    background: #ffeeba;
    color: #856404;
}

.bg-lightgreen {
    background: #d4edda;
    color: #155724;
}

.bg-lightred {
    background: #f8d7da;
    color: #721c24;
}

.bg-lightLime {
    background: #d1ecf1; /* light cyan */
    color: #0c5460;
}

.bg-lightteal {
    background: #cce5ff; /* light blue */
    color: #004085; /* deep blue text */
}












/* make body a flex container */
.order-card .card-body {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #eee;
}

/* each chip */
.info-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f4f0f8; /* very light purple tint */
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    flex: 1; /* equal width chips */
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

    /* icon styling */
    .info-chip i {
        font-size: 1.25rem;
        color: #0397F2;
    }

/* label (small text) */
.chip-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* value (main text) */
.chip-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}
















/* CARD FOOTER */
.order-card .card-footer {
    background: transparent;
    border-top: none;
    padding: 0.75rem 1rem;
}

.order-card .btn {
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
}

    .order-card .btn i {
        font-size: 1rem;
    }

/* UTILITY */
.d-flex.gap-2 {
    display: flex !important;
    gap: 0.5rem !important;
}

.flex-fill {
    flex: 1 !important;
}




















.order-modal-content {
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: auto;
    top: 15% !important;
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header with gradient */
.order-modal-header {
    background: linear-gradient(to right, #0397F2, #0F83D8);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1rem 1.25rem;
    color: #0F83D8;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
}

/* Footer fixed at bottom of modal */
.order-modal-footer {
    border-top: 1px solid #ddd;
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    position: sticky;
    bottom: 0;
    z-index: 1;
}

/* Table styling */
.order-items-table table th {
    background: #f7f9fc;
    font-weight: 600;
    font-size: 0.85rem;
}

.order-items-table td,
.order-items-table th {
    padding: 0.5rem;
    font-size: 0.85rem;
    vertical-align: middle;
}

.order-items-table .text-end {
    text-align: right;
}

.order-items-table .text-center {
    text-align: center;
}





.btn-close-modal {
    background-color: #f2f2f2;
    color: #0F83D8;
    border: 1px solid #ddd;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .btn-close-modal:hover {
        background-color: #e0e0e0;
        color: #2c1b36;
    }

.btn-print-invoice {
    background: #0D87DD; /* Soft purple gradient */
    color: white;
    border: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

    .btn-print-invoice:hover {
        background: linear-gradient(to right, #6c3483, #884ea0);
    }



































.swal2-popup {
    background-color: #fff;
    color: #1b2850;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.swal2-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1b2850;
    margin-bottom: 1.2rem;
}

.swal2-html-container {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.feedback-label {
    display: block;
    margin: 15px 0 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1b2850;
}

.rating {
    direction: rtl;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}

    .rating input {
        display: none;
    }

    .rating label {
        font-size: 1.8rem;
        color: #ccc;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .rating input:checked ~ label,
        .rating label:hover,
        .rating label:hover ~ label {
            color: #f8c51c;
        }

.form-section {
    margin-bottom: 18px;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    resize: vertical;
    background-color: #f9f9f9;
}

    textarea:focus {
        outline: none;
        border-color: #1b2850;
        background-color: #fff;
    }

select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #1b2850;
}

    select:focus {
        outline: none;
        border-color: #1b2850;
        background-color: #fff;
    }

/* Responsive for smaller screens */
@media (max-width: 500px) {
    .swal2-popup {
        padding: 1rem !important;
    }

    .swal2-title {
        font-size: 1.5rem;
    }

    .feedback-label {
        font-size: 1rem;
    }

    .rating label {
        font-size: 1.5rem;
    }
}








/* Form Body */
#orderSideComplainPanel .mb-3 {
    padding: 0 1rem;
}

#orderSideComplainPanel .form-label {
    display: block;
    margin-bottom: 0.1rem;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
}

/* Inputs & Textarea */
#orderSideComplainPanel .form-control {
    width: 100%;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

    #orderSideComplainPanel .form-control:focus {
        border-color: #0F83D8;
        box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
        outline: none;
    }

/* Submit Button Container */
#orderSideComplainPanel .submit-container {
    padding: 1rem;
    margin-top: auto;
}

#orderSideComplainPanel .btn-submit-complaint {
    display: block; /* Force full width */
    width: 100%;
    background: linear-gradient(to right, #0397F2, #0F83D8);
    color: #fff;
    border: none;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(108, 99, 255, 0.3);
    text-decoration: none;
    text-align: center; /* Center text inside link */
    margin-bottom: 1rem; /* Add bottom space */
}


    #orderSideComplainPanel .btn-submit-complaint:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(108, 99, 255, 0.4);
    }



.action-btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1.2;
}

    .action-btn-sm i {
        margin-right: 4px;
        font-size: 0.9rem;
    }


.logoutbtn {
    width: 100%;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.logoutbtn {
    background: linear-gradient(to right, #ff4b2b, #ff416c);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 65, 108, 0.4);
}






.action-btn-sm {
    min-width: 40px; /* Ensures buttons don't get too skinny */
    padding: 8px 4px;
}


.chat-dot {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 9px;
    height: 9px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    animation: chatDotPulse 1.6s infinite ease-in-out;
    z-index: 5;
}

@keyframes chatDotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}
