/* Notifications Modal */
.notifications-modal {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 430px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notifications-modal.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.notifications-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

/* Modal Header */
.notifications-modal-header {
    position: absolute;
    top: 22px;
    right: 8px;
    z-index: 10;
}

.notifications-modal-menu {
    background-color: #FFFFFF;
    border: 2px solid #333;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Notifications Menu Dropdown */
.notifications-menu-dropdown {
    position: absolute;
    top: 36px;
    right: 8px;
    width: 200px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 10001;
}

.notifications-menu-dropdown.open {
    display: block;
}

.notifications-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-family: Calibri;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    border-bottom: 1px solid #F0F0F0;
    transition: background-color 0.2s ease;
}

.notifications-menu-item span {
    flex: 1;
}

.notifications-menu-item:hover {
    background-color: #F5F5F5;
}

.notifications-menu-item:last-child {
    border-bottom: none;
}

.notifications-menu-item i {
    font-size: 10px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    background-color: #FFFFFF;
    border: 1px solid #999;
    border-radius: 4px;
    flex-shrink: 0;
}

.notifications-menu-item:first-child i {
    border: none;
    background-color: transparent;
}

/* Tabs */
.notifications-tabs {
    display: flex;
    overflow-x: auto;
    background-color: #FFFFFF;
    gap: 0;
    padding-top: 8px;
    padding-right: 40px;
    padding-left: 4px;
    margin-bottom: 20px;
}

/* Notifications Filter */
.notifications-filter {
    padding: 12px 16px;
    background-color: #FFFFFF;
    text-align: right;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #808080;
    color: #FFFFFF;
    font-family: Calibri;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    border-radius: 4px;
}

.filter-remove {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}

.notifications-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 8px;
    font-family: Calibri;
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
    color: #333;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: normal;
    text-align: left;
    word-wrap: break-word;
}

.notifications-tab.active {
    color: #0057B8;
    border-bottom-color: #0057B8;
}

/* Content */
.notifications-content {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

.notifications-tab-content {
    display: none;
}

.notifications-tab-content.active {
    display: block;
}

/* Notification Item */
.notification-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #F0F0F0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.notification-item.unread {
    background-color: #FAFAFA;
}

.notification-item.read {
    background-color: #FFFFFF;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Notification Header - Icon and Title Row */
.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    font-size: 6px;
    background-color: transparent;
}

.notification-icon i {
    font-weight: 900;
    line-height: 1;
}

.notification-title {
    font-family: Calibri;
    font-size: 11px;
    font-weight: 700;
    line-height: 12px;
    color: #333;
    flex: 1;
}

/* Notification Body - Message and Meta */
.notification-body {
    padding-left: 0;
}

.notification-message {
    display: block;
    font-family: Calibri;
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
    color: #333;
    margin-top: 4px;
    margin-bottom: 4px;
}

.notification-meta {
    display: block;
    font-family: Calibri;
    font-size: 10px;
    line-height: 12px;
}

.notification-category {
    display: inline;
    font-weight: 700;
    color: #333;
    margin-right: 8px;
}

.notification-category::after {
    content: "•";
    margin-left: 8px;
    color: #999;
}

.notification-date {
    display: inline;
    font-weight: 400;
    color: #333;
}

/* Empty State */
.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.notifications-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #CCC;
}

.notifications-empty p {
    font-family: Calibri;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
}

/* Empty State for Unread Filter */
.notifications-empty-unread {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.notifications-empty-unread i {
    font-size: 24px;
    margin-bottom: 16px;
    color: #FFFFFF;
    -webkit-text-stroke: 1px #333;
}

.notifications-empty-unread .empty-unread-title {
    font-family: Calibri;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: #009775;
    margin: 0 0 8px 0;
}

.notifications-empty-unread .empty-unread-message {
    font-family: Calibri;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #333;
    margin: 0;
    max-width: 300px;
}

/* Footer */
.notifications-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #E0E0E0;
    background-color: #FFFFFF;
}

.notifications-footer .btn {
    flex: 1;
    padding: 8px 16px;
    font-family: Calibri;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: 1px solid #D9D9D9;
    background-color: #FFFFFF;
    color: #333;
    transition: all 0.2s ease;
}

.notifications-footer .btn:hover {
    background-color: #F5F5F5;
    border-color: #B8B8B8;
}

/* Scrollbar styling */
.notifications-content::-webkit-scrollbar,
.notifications-tabs::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.notifications-content::-webkit-scrollbar-track,
.notifications-tabs::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.notifications-content::-webkit-scrollbar-thumb,
.notifications-tabs::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 3px;
}

.notifications-content::-webkit-scrollbar-thumb:hover,
.notifications-tabs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-modal {
        width: 90vw;
        max-width: 400px;
    }
    
    .notifications-tabs {
        flex-wrap: wrap;
    }
    
    .notifications-tab {
        font-size: 12px;
        padding: 10px 12px;
    }
}

