/**
 * Platform Notifications - Bell icon and dropdown
 */

.notification-bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border-radius: var(--radius-md, 8px);
    transition: background-color 0.2s, color 0.2s;
}

.notification-bell-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.notification-bell-btn i {
    font-size: 1.25rem;
}

.notification-bell-btn.has-unread {
    animation: notification-pulse 1.5s ease-in-out infinite;
}

@keyframes notification-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: white;
    background-color: #dc3545;
    border-radius: 9px;
    border: 2px solid var(--sidebar-color, #2c3e50);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 360px;
    max-width: 95vw;
    background: white;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color, #e0e0e0);
    z-index: 1050;
    overflow: hidden;
    display: none;
}

.notification-dropdown.show {
    display: block;
}

.notification-dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color, #333);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    background: var(--bg-secondary, #f8f9fa);
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color, #333);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s;
}

.notification-item:hover {
    background-color: var(--hover-bg, #f5f5f5);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: rgba(65, 105, 225, 0.06);
}

.notification-item-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-item-message {
    font-size: 0.8rem;
    color: var(--text-secondary, #666);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.notification-item-time {
    font-size: 0.7rem;
    color: var(--text-muted, #999);
}

.notification-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-muted, #999);
    font-size: 0.875rem;
}

.notification-dropdown-footer {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--primary-color, #4169e1);
    text-align: center;
    text-decoration: none;
    border-top: 1px solid var(--border-color, #e0e0e0);
    background: var(--bg-secondary, #f8f9fa);
    transition: background-color 0.15s;
}

.notification-dropdown-footer:hover {
    background-color: var(--hover-bg, #eee);
    color: var(--primary-color-dark, #3152b8);
}
