/* Notifications Dropdown Widget v2.0 CSS */

.notifications-dropdown-trigger {
    position: relative;
    cursor: pointer;
}

.notifications-badge {
    position: absolute;
    top: 8px;
    right: -8px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notifications-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.notifications-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.notifications-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.notifications-close:hover {
    background: #f5f5f5;
    color: #333;
}

.notifications-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
}

.notifications-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.notifications-tab:hover {
    color: #333;
    background: #f0f0f0;
}

.notifications-tab.active {
    color: #bf00ff;
    background: white;
}

.notifications-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #bf00ff;
}

.notifications-content {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.notifications-list {
    padding: 0;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f8f8f8;
}

.notification-item.unread {
    background: #f0f0ff;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #bf00ff;
}

.notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0ff;
    color: #bf00ff;
    font-size: 16px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-subject {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.notification-body {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

.notification-mark-read {
    flex-shrink: 0;
    background: none;
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-mark-read:hover {
    background: #bf00ff;
    border-color: #bf00ff;
    color: white;
}

.notifications-loading,
.notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

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

.notifications-empty p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #666;
}

.notifications-loading i {
    font-size: 24px;
    color: #bf00ff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    .notification-item {
        padding: 12px 16px;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
