.notifications-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0;
}

.notifications-header {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notifications-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-icon {
    width: 20px;
    height: 20px;
}

.notifications-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    position: relative;
    border: 1px solid transparent;
}

.notification-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.notification-item.unread {
    background: rgba(255, 107, 53, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread .notification-content-title {
    font-weight: 700;
}

.notification-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.notification-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.notification-icon-wrapper.comment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon-wrapper.vote {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon-wrapper.deal {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notification-icon-wrapper.system {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.notification-icon-wrapper.badge {
    background: linear-gradient(135deg, #ffd93d 0%, #ff9a00 100%);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-content-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.notification-meta svg {
    width: 14px;
    height: 14px;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.notification-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.notification-toast {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
}

.notification-toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

.notification-toast:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.notification-toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.notification-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-toast-content {
    flex: 1;
}

.notification-toast-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.notification-toast-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.notification-toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-toast-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.notification-unread-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-tertiary);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .notifications-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .notifications-tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
    }

    .notifications-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .notification-item {
        padding: 0.875rem;
    }

    .notification-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .notification-toast-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .notification-toast {
        padding: 12px;
    }
}
