﻿
@keyframes pulse {
    0% {
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4), 0 0 0 8px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.notification-badge, .count-message-badge{
    cursor: pointer;
    color: white;
    background: red;
    font-size: 9px;
    font-weight: 500;
    padding: 0px 5px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 15px;
    pointer-events: none;
    position: absolute;
    transform: translateX(10px);
    top: 0px;
}

/* Notification Popup */
.notification-popup {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: 380px;
    max-height: calc(90vh - 60px);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    left: 50%;
}

    .notification-popup.show {
        display: block;
        visibility: visible;
        opacity: 1;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Popup Header */
.notification-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 16px 16px 0 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.notification-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .notification-title::before {
        content: '🔔';
        font-size: 20px;
    }

.mark-as-read {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .mark-as-read:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }

/* Notification List */
.notification-list {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .notification-list::-webkit-scrollbar {
        width: 2px;
    }

    .notification-list::-webkit-scrollbar-thumb {
        background-color: #7e41f6;
        border-radius: 2px;
    }

/* Notification Items */
.notification-item {
    padding: 10px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

    .notification-item:hover {
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        transform: translateX(4px);
    }

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item.bold-text::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 0 4px 4px 0;
    }

    .notification-item.bold-text {
        background: rgba(102, 126, 234, 0.02);
    }

.notification-icon {
    width: 30px;
    height: 30px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.content-notify {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-notify {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.4;
    font-weight: 500;
}

.notification-item.bold-text .meta-notify {
    font-weight: 700;
    color: #1a202c;
}

.meta-notify-time {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .meta-notify-time::before {
        content: '•';
        color: #d1d5db;
    }

.notification-item.bold-text .meta-notify-time {
    font-weight: 600;
    color: #4a5568;
}

.highlight {
    color: #667eea;
    font-weight: 600;
}

/* Bottom Button */
.btn-seen-notify {
    text-align: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 0 0 16px 16px;
}

.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

    .custom-button .arrow {
        margin-left: 8px;
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    .custom-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

        .custom-button:hover .arrow {
            transform: translateX(4px);
        }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

@media (max-width: 350px) {
    .notification-popup {
        left: auto;
        right: auto;
        transform: none;
        width: 315px;
    }
}


@media (min-width: 351px) and (max-width: 767px) {
    .notification-popup {
        left: auto;
        right: auto;
        right: auto;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .notification-popup {
        right: 120px;
        transform: none;
    }
}














/*.notification-container {
    position: relative; 
}

.bell-icon {
    cursor: pointer; 
    margin-left: 10px;
    width: 25px;
}

.notification-popup, .notificationScroll-popup {*/
/*position: absolute !important;
    top: calc(100% + 29px) !important;
    left: 50%;
    transform: translateX(-116%);*/
/*width: 300px;
    max-width: 300px !important;
    max-height: 450px;
    overflow-y: auto;
    background: #FDF8FF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px !important;
    z-index: 1000;
    display: none;
}
.content-notify {
    display: flex;
    flex-direction: column;
}
.notification-popup .header-notification, .notificationScroll-popup .header-notification {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4a4a4a;
    height: 30px;*/
/*display: flex;
    justify-content: space-between;
    align-items: center;*/
/*}
    .notification-popup .header-notification a:hover, .notificationScroll-popup .header-notification a:hover {
        text-decoration: underline;
    }

.notification-item {
    border-top: 1px solid #e0e0e0; 
    padding: 10px;
    cursor: pointer;
    margin-bottom: 5px; 
    border-radius: 6px; 
}
.notification-item:hover {
    background: #F6EEFC;
}
.notification-item:last-child {
    margin-bottom: 0; 
}

.notification-item .header {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.notification-item .meta-notify {
    font-size: 12px;
    color: #333;
    margin-top: 5px;
    text-align: left;*/
/*font-weight: bold;*/
/*}
.notification-item.bold-text .meta-notify {
    font-weight: bold;
}
.notification-item .meta-notify-time {
    font-size: 11px;
    color: #333;
    margin-top: 5px;
    text-align: left;*/
/*font-weight: bold;*/
/*}

.notification-item.bold-text .meta-notify-time {
    font-weight: bold;
}
.notification-container .ui.button.primary {
    background-color: #007bff !important;
    color: white !important;
}

.notification-container .ui.popup:before{
    content : none !important;
}
.title-notify {
    color: #652CD4;
    font-size: 18px;
    width: 50%;
    text-align: left;
    position: absolute;
    margin-top: 5px;
}
.mark-as-read {
    margin-left: 175px;
    cursor: pointer;
    color: #4CAF50;
    font-size: 12px;
    position: absolute;
    margin-top: 5px;
}*/

/*.mark-as-read:hover {
    color: #4c814e; 
}*/
/*.notification-container .custom-button {
    display: inline-flex;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;*/
/*font-size: 15px;*/
/*font-weight: bold;*/
/*color: #4CAF50;
    background-color: transparent;
    border: 1px solid #4CAF50;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-container .custom-button .arrow {
    margin-left: 8px; 
    font-size: 16px; 
}

    .notification-container .custom-button:hover {*/
/*background-color: #8468eb96;
        color: white;*/
/*box-shadow: 0px 1px 8px 0px #BBBBBBB5;
    }
.btn-seen-notify{
    text-align: center;
    font-size: 12px;
}*/
/* Số dưới cái chuông */
/*.notification-badge {
    cursor: pointer;
    color: white;*/
/* background: #ECE8E8B0; */
/*background: red;
    font-size: 9px;*/
/* font-weight: 500; */
/*padding: 0px 5px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 15px;
    pointer-events: none;
    position: absolute;
    transform: translateX(10px);

    top: 10px;
}
.notification-badge-scroll {
    cursor: pointer;
    position: absolute;
    bottom: -5px;
    right: 44px;
    color: #BB0707;
    background: #ECE8E8B0;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 3px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}*/
