.notification-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    margin-right: 1rem;
}

.notification-bell svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.notification-bell:hover {
    background: var(--bg-secondary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notifications-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.mark-all-read:hover {
    background: var(--bg-secondary);
}

.notifications-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.notification-icon.macro_adjustment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon.weight_change {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon.workout_reminder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notification-icon.new_tracker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon.tracking_confirmation {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-icon.achievement {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.empty-notifications {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-notifications svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-notifications p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .notifications-panel {
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 400px;
    }
}
