﻿/*.notification-mobile-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-left: 8px;
    overflow: visible;
}

.notification-mobile-trigger {
    position: relative;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
    overflow: visible;
}

    .notification-mobile-trigger:hover {
        background: #f4f7f6;
    }

    .notification-mobile-trigger:active {
        transform: scale(0.95);
    }

    .notification-mobile-trigger .bell-icon {
        width: 23px;
        height: 23px;
        object-fit: contain;
        opacity: 0.75;
        transition: opacity 0.2s ease;
    }

    .notification-mobile-trigger:hover .bell-icon {
        opacity: 1;
    }

.notification-mobile-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
    line-height: 1;
    padding: 0 4px;
    z-index: 1001;
    margin: 0;
}

    .notification-mobile-badge.show {
        display: flex;
    }

.notification-drawer-overlay {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.25s ease;
}

    .notification-drawer-overlay.active {
        display: block;
        opacity: 1;
    }

.notification-drawer {
    position: absolute;
    top: 0;
    right: -100%;
    width: 330px;
    max-width: 88vw;
    height: 100%;
    background: #f8fafc;
    z-index: 9999;
    border-left: 1px solid #e5e7eb;
    box-shadow: -12px 0 35px rgba(15, 23, 42, 0.12);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .notification-drawer.open {
        right: 0;
    }

.drawer-header {
    padding: 16px 18px 13px;
    border-bottom: 1px solid #e8edf2;
    background: #ffffff;
    flex-shrink: 0;
}

.drawer-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-main-title {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 750;
    color: #17211b;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

    .drawer-main-title svg {
        width: 22px;
        height: 22px;
        stroke: #16a34a;
    }

.drawer-close {
    background: #f5f7f8;
    border: 1px solid #edf0f2;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 19px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

    .drawer-close:hover {
        background: #eef2f3;
        color: #1f2937;
    }

    .drawer-close:active {
        transform: scale(0.94);
    }

.drawer-sub-title {
    font-size: 13px;
    color: #7b8794;
    margin-top: 5px;
    font-weight: 400;
}

.active-count-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    padding: 9px 11px;
    font-size: 12px;
    font-weight: 750;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    background: #f6faf7;
    border: 1px solid #e5f1e8;
    border-radius: 9px;
}

    .active-count-row svg {
        width: 16px;
        height: 16px;
        stroke: #16a34a;
    }

    .active-count-row .count-num {
        color: #16a34a;
        font-weight: 700;
        margin-left: 2px;
        font-size: 13px;
    }

.drawer-body-scroll {
    flex: 1;
    overflow-y: auto;
    background: #f7f9fa;
    padding: 2px 0 14px;
}

    .drawer-body-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .drawer-body-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .drawer-body-scroll::-webkit-scrollbar-thumb {
        background: #d4dbe0;
        border-radius: 10px;
    }

.order-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #ffffff;
    border-radius: 26px;
    margin: 6px 13px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

    .order-card:hover {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
        transform: translateY(-2px);
    }

    .order-card:active {
        transform: scale(0.985);
    }

    .order-card.read {
        background: #f8fafc;
        opacity: 0.98;
    }

    .order-card.unread {
        background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%);
        box-shadow: 0 12px 36px rgba(22, 163, 74, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

        .order-card.unread:hover {
            box-shadow: 0 18px 44px rgba(22, 163, 74, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

.order-avatar {
    width: 38px;
    height: 38px;
    background: #edf8f0;
    border: 1px solid #dff0e4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .order-avatar svg {
        width: 18px;
        height: 18px;
        stroke: #16a34a;
        fill: none;
    }

.order-info {
    flex: 1;
    min-width: 0;
}

.order-code {
    display: block;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.order-info .status-badge {
    display: inline-block;
    font-size: clamp(8px, 2vw, 10px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 5px;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.order-info .status-confirmed {
    background: #16a34a;
}

.order-info .status-ontheway {
    background: #0f9f78;
}

.order-info .status-completed {
    background: #64748b;
}

.order-info h4 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0px;
    line-height: 1.3;
    margin: 0 0 3px 0;
}

.order-info p {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #78838f;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-arrow {
    color: #b0b8c0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: color 0.2s ease, transform 0.2s ease;
}

.order-card:hover .order-arrow {
    color: #16a34a;
    transform: translateX(2px);
}

.order-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.notif-time {
    position: absolute;
    bottom: 9px;
    right: 14px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.1px;
}

.drawer-empty {
    text-align: center;
    padding: 50px 20px;
    color: #9aa4ad;
    font-size: 14px;
    background: #f7f9fa;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .drawer-empty .empty-icon {
        width: 54px;
        height: 54px;
        opacity: 0.35;
        margin-bottom: 14px;
    }

    .drawer-empty .empty-text {
        font-family: 'Inter', 'Segoe UI', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #4b5563;
    }

    .drawer-empty .empty-sub {
        font-size: 13px;
        color: #9aa4ad;
        margin-top: 5px;
    }

.mobile-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 19px;
    border-radius: 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    max-width: 90%;
    text-align: center;
}

    .mobile-toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .mobile-toast.success {
        background: #15803d;
    }

    .mobile-toast.error {
        background: #dc2626;
    }

    .mobile-toast.warning {
        background: #d97706;
    }

    .mobile-toast.info {
        background: #2563eb;
    }

@media (max-width: 480px) {
    .notification-drawer {
        width: 90%;
        max-width: 90%;
        border-left: none;
    }

    .drawer-header {
        padding: 15px 16px 12px;
    }

    .drawer-main-title {
        font-size: 19px;
    }

    .order-card {
        margin: 9px 12px;
        padding: 13px;
        padding-bottom: 30px;
    }

    .order-info h4 {
        font-size: 16px;
    }

    .order-info p {
        font-size: 13px;
    }
}
*/

.notification-mobile-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-left: 8px;
    overflow: visible;
}

.notification-mobile-trigger {
    position: relative;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
    overflow: visible;
}

    .notification-mobile-trigger:hover {
        background: #f1f5f9;
    }

    .notification-mobile-trigger:active {
        transform: scale(0.95);
    }

    .notification-mobile-trigger .bell-icon {
        width: 23px;
        height: 23px;
        object-fit: contain;
        opacity: 0.75;
        transition: opacity 0.2s ease;
    }

    .notification-mobile-trigger:hover .bell-icon {
        opacity: 1;
    }

.notification-mobile-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
    line-height: 1;
    padding: 0 4px;
    z-index: 1001;
    margin: 0;
}

    .notification-mobile-badge.show {
        display: flex;
    }

.notification-drawer-overlay {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.25s ease;
}

    .notification-drawer-overlay.active {
        display: block;
        opacity: 1;
    }

.notification-drawer {
    position: absolute;
    top: 0;
    right: -100%;
    width: 330px;
    max-width: 88vw;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    border-left: 1px solid #e5e7eb;
    box-shadow: -12px 0 35px rgba(15, 23, 42, 0.12);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .notification-drawer.open {
        right: 0;
    }

.drawer-header {
    padding: 17px 18px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.drawer-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-main-title {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #17211b;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

    .drawer-main-title svg {
        width: 22px;
        height: 22px;
        stroke: #10b981;
    }

.drawer-close {
    background: #f5f7f8;
    border: 1px solid #edf0f2;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 19px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

    .drawer-close:hover {
        background: #eef2f3;
        color: #1f2937;
    }

    .drawer-close:active {
        transform: scale(0.94);
    }

.drawer-sub-title {
    font-size: 13px;
    color: #7b8794;
    margin-top: 5px;
    font-weight: 400;
}

.active-count-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
}

    .active-count-row svg {
        width: 16px;
        height: 16px;
        stroke: #10b981;
    }

    .active-count-row .count-num {
        color: #10b981;
        font-weight: 700;
        margin-left: 2px;
        font-size: 13px;
    }

.drawer-body-scroll {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
}

    .drawer-body-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .drawer-body-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .drawer-body-scroll::-webkit-scrollbar-thumb {
        background: #d4dbe0;
        border-radius: 10px;
    }

.order-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 13px 16px;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #eef1f3;
    border-radius: 0;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

    .order-card::before {
        display: none;
    }

    .order-card:hover {
        background: #f8fafc;
        box-shadow: inset 3px 0 0 #d1d5db;
        transform: none;
    }

    .order-card:active {
        background: #f1f5f9;
        transform: none;
    }

    .order-card.unread {
        background: #f0fdf4;
        border-bottom-color: #dcfce7;
        box-shadow: inset 3px 0 0 #10b981;
    }

        .order-card.unread:hover {
            background: #ecfdf3;
            box-shadow: inset 3px 0 0 #059669;
        }

    .order-card.read {
        background: #ffffff;
        opacity: 1;
    }

        .order-card.read:hover {
            background: #f8fafc;
        }

.order-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 10px;
    margin-top: 1px;
}

    .order-avatar svg {
        width: 18px;
        height: 18px;
        stroke: #16a34a;
        stroke-width: 2;
        fill: none;
    }

.order-card.unread .order-avatar {
    background: #dcfce7;
    border-color: #bbf7d0;
}

    .order-card.unread .order-avatar svg {
        stroke: #15803d;
    }

.order-card.read .order-avatar {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

    .order-card.read .order-avatar svg {
        stroke: #64748b;
    }

.order-card.unread .order-avatar::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.order-info {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.order-code {
    display: block;
    margin: 0 0 3px 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.order-card.unread .order-code {
    color: #15803d;
}

.order-info h4 {
    margin: 0 0 4px 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 650;
    color: #1e293b;
    line-height: 1.35;
    letter-spacing: -0.05px;
}

.order-card.unread .order-info h4 {
    color: #17211b;
    font-weight: 700;
}

.order-info p {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-info .status-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 5px 0;
    padding: 3px 7px;
    border-radius: 5px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 8px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: none;
}

.order-info .status-confirmed {
    background: #16a34a;
}

.order-info .status-ontheway {
    background: #0f9f78;
}

.order-info .status-completed {
    background: #64748b;
}

.order-arrow {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    color: #cbd5e1;
    border-radius: 6px;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

    .order-arrow svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        stroke-width: 2;
    }

.order-card:hover .order-arrow {
    color: #16a34a;
    background: #f0fdf4;
    transform: translateX(2px);
}

.notif-time {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.order-card.unread .notif-time {
    color: #16a34a;
    font-weight: 600;
}

.drawer-empty {
    text-align: center;
    padding: 50px 20px;
    color: #9aa4ad;
    font-size: 14px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .drawer-empty .empty-icon {
        width: 54px;
        height: 54px;
        opacity: 0.35;
        margin-bottom: 14px;
    }

    .drawer-empty .empty-text {
        font-family: 'Inter', 'Segoe UI', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #4b5563;
    }

    .drawer-empty .empty-sub {
        font-size: 13px;
        color: #9aa4ad;
        margin-top: 5px;
    }

.mobile-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 19px;
    border-radius: 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    max-width: 90%;
    text-align: center;
}

    .mobile-toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .mobile-toast.success {
        background: #15803d;
    }

    .mobile-toast.error {
        background: #dc2626;
    }

    .mobile-toast.warning {
        background: #d97706;
    }

    .mobile-toast.info {
        background: #2563eb;
    }

@media (max-width: 480px) {
    .notification-drawer {
        width: 90%;
        max-width: 90%;
        border-left: none;
    }

    .drawer-header {
        padding: 15px 16px 12px;
    }

    .drawer-main-title {
        font-size: 19px;
    }

    .order-card {
        gap: 10px;
        padding: 12px 13px;
    }

    .order-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 9px;
    }

        .order-avatar svg {
            width: 17px;
            height: 17px;
        }

    .order-info h4 {
        font-size: 13px;
    }

    .order-info p {
        font-size: 11px;
    }

    .order-info .status-badge {
        font-size: 8px;
        padding: 3px 7px;
    }

    .order-arrow {
        width: 24px;
        height: 24px;
    }

        .order-arrow svg {
            width: 15px;
            height: 15px;
        }

    .notif-time {
        top: 12px;
        right: 13px;
        font-size: 8px;
    }
}