/* Chat Notification Popup - Appears with Active Orders */
.chat-notification-popup {
    position: fixed;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #5AC8FA, #4AB8EA);
    color: white;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(90, 200, 250, 0.4);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.5s ease-out forwards;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.chat-notification-popup.show {
    display: flex;
}

.chat-notification-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(90, 200, 250, 0.5);
}

.chat-notification-popup:active {
    transform: translateY(0);
}

/* Chat Icon Container */
.chat-notif-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    animation: pulse-icon 2s infinite;
}

.chat-notif-icon i {
    font-size: 22px;
    color: white;
}

/* Red dot for new messages */
.chat-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #5AC8FA;
    animation: pulse-badge 1.5s infinite;
}

/* Content */
.chat-notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-notif-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.chat-notif-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Close button */
.chat-notif-close {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.chat-notif-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Animations */
@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Dark Mode Support */
body.dark-mode .chat-notification-popup {
    background: linear-gradient(135deg, #4AB8EA, #3AA8DA);
    box-shadow: 0 8px 24px rgba(90, 200, 250, 0.3);
}

body.dark-mode .chat-notif-close {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .chat-notif-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .chat-notification-popup {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        padding: 12px 14px;
    }

    .chat-notif-icon {
        width: 42px;
        height: 42px;
    }

    .chat-notif-icon i {
        font-size: 20px;
    }

    .chat-notif-title {
        font-size: 14px;
    }

    .chat-notif-message {
        font-size: 12px;
    }
}

/* Alternative compact style (if needed) */
.chat-notification-popup.compact {
    padding: 10px 14px;
}

.chat-notification-popup.compact .chat-notif-icon {
    width: 36px;
    height: 36px;
}

.chat-notification-popup.compact .chat-notif-icon i {
    font-size: 18px;
}

.chat-notification-popup.compact .chat-notif-title {
    font-size: 13px;
}

.chat-notification-popup.compact .chat-notif-message {
    font-size: 12px;
}